This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.10) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
$types: text, color, date, datetime, datetime-local, email, month, number, range, search, tel, time, url, week; | |
@each $prop in $types { | |
[type="#{$prop}"] { | |
display: inline-block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser.ignoreSynchronization = true; // to work outside NG | |
element(by.name('whoami')).sendKeys('FrankfurtJS!'); | |
element(by.id('greet')).click(); | |
element(by.id('message')).getText().then(function(val) { | |
assert.equal(val, 'FrankfurtJS!'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webdriver-manager update | |
webdriver-manager start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test | |
.type('[name="whoami"]', 'FrankfurtJS!') | |
.click('#greet') | |
.assert.text('#message').is('FrankfurtJS!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client | |
.addValue('[name="whoami"]', 'FrankfurtJS!') | |
.buttonClick('#greet') | |
.getText('#message', function(err, text) { | |
assert.equal( | |
text, 'FrankfurtJS!', | |
'Messages should be the same'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
driver.findElement(webdriver.By.name('whoami')) | |
.sendKeys('WebDriver was here!'); | |
driver.findElement(webdriver.By.id('greet')) | |
.click(); | |
driver.findElement(webdriver.By.id('message')) | |
.getText() | |
.then(function(val) { | |
assert.equal( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
driver.findElement(webdriver.By.name('whoami')) | |
.sendKeys('FrankfurtJS!'); | |
driver.findElement(webdriver.By.id('greet')) | |
.click(); | |
driver.findElement(webdriver.By.id('message')) | |
.getText() | |
.then(function(val) { | |
assert.equal(val, 'FrankfurtJS!', 'Messages should be the same'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create() | |
var args = require('system').args | |
var argv = require('optimist').argv | |
var url = args[1] | |
var resolution = args[2] | |
var width = resolution.split('x')[0] | |
var height = resolution.split('x')[1] | |
var timeout = args[3] | |
var cut = args[4] == 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assert = require('assert'), | |
test = require('selenium-webdriver/testing'), | |
webdriver = require('selenium-webdriver'); | |
test.describe('Submitted message should be shown', function() { | |
test.it('should work', function(done) { | |
var driver = new webdriver.Builder() | |
.withCapabilities(webdriver.Capabilities.chrome()) | |
.build(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Field; | |
import sun.misc.Unsafe; | |
public class KillVM { | |
public static void main(String... args) { | |
Unsafe unsafe = null; | |
try { | |
Field field = sun.misc.Unsafe.class.getDeclaredField("theUnsafe"); | |
field.setAccessible(true); |