This file contains hidden or 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
//fails | |
myFunc( | |
someArg | |
); | |
//passes | |
myFunc( | |
myArg | |
); |
This file contains hidden or 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
127.0.0.1 gaiamobile.org | |
127.0.0.1 homescreen.gaiamobile.org | |
127.0.0.1 dialer.gaiamobile.org | |
127.0.0.1 sms.gaiamobile.org | |
127.0.0.1 browser.gaiamobile.org | |
127.0.0.1 maps.gaiamobile.org | |
127.0.0.1 camera.gaiamobile.org | |
127.0.0.1 gallery.gaiamobile.org | |
127.0.0.1 video.gaiamobile.org | |
127.0.0.1 market.gaiamobile.org |
This file contains hidden or 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 globals = [ | |
'suiteSetup', | |
'test' | |
]; | |
var Task = (function() { | |
var current, done; | |
return { | |
start: function(generator, cb) { |
This file contains hidden or 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
//right now you can do this. | |
var device = new Marionette.Client(); | |
device.startSession(function(){ | |
var body, text; | |
device. | |
goUrl('http://google.com', function(){ //result of command }). | |
findElement('body', function(el){ | |
el.text(function(text){ |
This file contains hidden or 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
yield device.startSession(); | |
function remoteScript() { | |
return window.location; | |
} | |
var result = yield device.executeScript(remoteScript); |
This file contains hidden or 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
suite('github.com', function() { | |
var device; | |
startMarionette(function(client) { | |
device = client; | |
}); | |
suite('github', function() { | |
suiteSetup(function() { |
This file contains hidden or 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
function startMarionette() { | |
suiteSetup(function() { | |
this.timeout(10000); | |
var driver = new Marionette.Drivers.HttpdPolling(); | |
yield driver.connect(Task.next); | |
device = new Marionette.Client(driver, { | |
defaultCallback: Task.next | |
}); | |
yield device.startSession(); | |
}); |
This file contains hidden or 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('my thing', function() { | |
this.timeout(4000); | |
//run stuff | |
}); |
This file contains hidden or 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 Abstract, CommandStream; | |
Abstract = require('./abstract').Marionette.Drivers.Abstract; | |
CommandStream = require('../../node/command-stream'); | |
/** TCP **/ | |
Tcp.Socket = require('net').Socket; | |
function Tcp(options) { | |
if (typeof(options)) { |
This file contains hidden or 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 Example = (function(){ | |
return { | |
math: function() { | |
}, | |
complexMethod: function() { | |
} | |
} |