Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
1
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/helper.js
vendored
Executable file
1
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/helper.js
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
global.MAGIC_GLOBAL_VARIABLE = true;
|
||||
0
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/noop.js
vendored
Executable file
0
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/noop.js
vendored
Executable file
4
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/pending.js
vendored
Executable file
4
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/pending.js
vendored
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
'use strict';
|
||||
suite('pending', function() {
|
||||
test('iampending');
|
||||
});
|
||||
33
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/rpc.js
vendored
Executable file
33
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/rpc.js
vendored
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
'use strict';
|
||||
var RPC = require('../../lib/rpc');
|
||||
var Promise = require('promise');
|
||||
|
||||
var rpc = new RPC(process.send.bind(process));
|
||||
|
||||
rpc.register('test', {
|
||||
$rpc: { methods: ['args'] },
|
||||
|
||||
getSelf: function() {
|
||||
return Promise.resolve(this);
|
||||
},
|
||||
|
||||
noArgs: function() {
|
||||
return Promise.resolve();
|
||||
},
|
||||
|
||||
args: function() {
|
||||
var args = Array.prototype.slice.call(arguments);
|
||||
return new Promise(function(accept) {
|
||||
return accept(args);
|
||||
});
|
||||
},
|
||||
|
||||
error: function() {
|
||||
return new Promise(function() {
|
||||
throw new Error('xfoo');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
var handle = rpc.handle();
|
||||
process.on('message', handle);
|
||||
19
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/test.js
vendored
Executable file
19
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/test.js
vendored
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
'use strict';
|
||||
suite('a test', function() {
|
||||
console.log('before running test log');
|
||||
test('test one', function() {
|
||||
});
|
||||
|
||||
suite('another suite fail', function() {
|
||||
test('throw', function() {
|
||||
throw new Error('xxx');
|
||||
});
|
||||
});
|
||||
|
||||
test('multiple console logs', function(done) {
|
||||
setTimeout(function() {
|
||||
console.log('works');
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
1
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/testops.opts
vendored
Executable file
1
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/testops.opts
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
--magicfoobar --dodad
|
||||
2
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/testopsnewline.opts
vendored
Executable file
2
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/testopsnewline.opts
vendored
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
--one
|
||||
--two
|
||||
4
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/with-helper.js
vendored
Executable file
4
gaia/tests/jsmarionette/runner/marionette-js-runner/test/fixtures/with-helper.js
vendored
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
'use strict';
|
||||
test('global variable', function() {
|
||||
assert.ok(MAGIC_GLOBAL_VARIABLE);
|
||||
});
|
||||
Loading…
Reference in a new issue