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 Q = require("q"); | |
var Set = require("collections/set"); // https://npmjs.org/package/collections | |
window.outstandingPromises = new Set(); | |
var originalDefer = Q.defer; | |
Q.defer = function () { | |
console.error("Deferred created"); | |
var deferred = originalDefer(); | |
deferred.stack = new Error("").stack; | |
window.outstandingPromises.add(deferred); |
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 Serializer = require("montage/core/serialization").Serializer; | |
var MyComponent = Montage.create(Component, { | |
handleButtonClick: { | |
value: function (event) { | |
var serializer = Serializer.create().initWithRequire(require); | |
var serialization = serializer.serialize(this.theObjects); | |
console.log(serialization); |
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
$ ../montage/tools/minit/minit app hello | |
* Clone Montage to your app: | |
git clone [email protected]:Motorola-Mobility/montage.git hello/node_modules/montage | |
* or add it as a submodule: | |
cd hello | |
git init | |
git submodule add [email protected]:Motorola-Mobility/montage.git node_modules/montage | |
Template expansion successful! |
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
$ ls | |
index.html node_modules package.json ui | |
$ ./node_modules/montage/tools/minit/minit component my-component MyComponent | |
my-component.reel created. | |
Template expansion successful! | |
$ ls ui/ | |
main.reel my-component.reel |
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
/** | |
* Known element location strategies. The returned objects have two | |
* methods on them, "single" and "many", for locating a single element | |
* or multiple elements, respectively. | |
* | |
* @private | |
* @const | |
* @type {Object.<string,bot.locators.strategy>} | |
*/ | |
bot.locators.STRATEGIES_ = { |
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
~/s/w/driver:master$ pwd | |
/home/stuart/src/watir/driver | |
~/s/w/driver:master$ mvn -f maven/pom.xml release:perform | |
[INFO] Scanning for projects... | |
[INFO] Searching repository for plugin with prefix: 'release'. | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building OperaDriver | |
[INFO] task-segment: [release:perform] (aggregator-style) | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] [release:perform {execution: default-cli}] |
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 com.opera.core.systems.*; | |
import org.openqa.selenium.*; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import java.util.*; | |
import org.openqa.selenium.interactions.*; | |
class Example { | |
static RemoteWebDriver driver; |
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 com.opera.core.systems.*; | |
import com.opera.core.systems.settings.OperaDriverSettings; | |
import org.openqa.selenium.*; | |
import java.util.*; | |
import org.openqa.selenium.interactions.*; | |
class Example { | |
public static void main(String[] args) { | |
OperaDriver driver = new OperaDriver(); |