Skip to content

Instantly share code, notes, and snippets.

ksakae1216

Block or report user

Report or block ksakae1216

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View loginBlock
.loginBlock{
grid-row: 2;
grid-column: 2;
background:#f0f0f0;
padding:6% 4%;
View loginArea
.loginArea{
display: grid;
height: 100%;
width: 100%;
grid-template-columns: 1fr 500px 1fr;
grid-template-rows: 100px 300px 1fr;
}
View sample
<html>
<head>
<script>
var f = function() {
// 'i'にvarを宣言しない
for(i=0; i<10; i++) {
//'i'を単純にインクリメント
}
};
View launch.json
{
// IntelliSense を使用して利用可能な属性を学べます。
// 既存の属性の説明をホバーして表示します。
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
"version": "2.0.0",
"configurations": [
{
"name": "Launch local file",
"type": "chrome",
"request": "launch",
View config.ts
import { ProtractorBrowser, Config } from 'protractor';
import myReporter = require('./jasmine_reporter');
export let config: Config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
capabilities: {
'directConnect': true,
'browserName': 'chrome'
},
framework: 'jasmine',
specs: ['./specs/**/*.js'],
View jasmine_reporter.ts
import { browser } from 'protractor';
import fs = require('fs');
declare var module: NodeModule;
var myReporter = {
specDone: function (result) {
if (result.failedExpectations.length > 0) {
browser.getProcessedConfig().then(function (config) {
browser.takeScreenshot().then(function (png) {
var dirPath = './reports/screenshots/';
if (!fs.existsSync('./reports')) {
View config.ts
import { ProtractorBrowser, Config } from 'protractor';
export let config: Config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
capabilities: {
'browserName': 'chrome'
},
framework: 'jasmine',
specs: ['./specs/**/*.js'],
jasmineNodeOpts: {
defaultTimeoutInterval: 90000
You can’t perform that action at this time.