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
|
|
@ -0,0 +1,17 @@
|
|||
'use strict';
|
||||
// Test here is only to test SIGINT functionality.
|
||||
marionette('stay blocked', function() {
|
||||
var client = marionette.client();
|
||||
|
||||
test('block', function() {
|
||||
// Ensure we don't die on any startup errors...
|
||||
try {
|
||||
client.executeScript(function() {});
|
||||
} catch (e) {}
|
||||
|
||||
client.setScriptTimeout(1000000);
|
||||
client.executeAsyncScript(function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
'use strict';
|
||||
function Builder() {}
|
||||
Builder.prototype = {
|
||||
build: function(callback) {
|
||||
// magic process exit number to indicate that this file was loaded.
|
||||
process.exit(66);
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = Builder;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"desiredCapability": true
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
/**
|
||||
* @fileoverview A marionette test that simply logs something in gecko.
|
||||
*/
|
||||
suite('console proxy', function() {
|
||||
this.timeout('10s');
|
||||
var client = marionette.client();
|
||||
|
||||
test('log in host', function(done) {
|
||||
// logging is asynchronous so wait a bit longer then just the execution
|
||||
// so we actually get some logs...
|
||||
client.executeScript(function() {
|
||||
console.log('What does the fox say');
|
||||
});
|
||||
setTimeout(done, 2000);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
/* global Components, ctypes */
|
||||
'use strict';
|
||||
suite('crash', function() {
|
||||
var client = marionette.client();
|
||||
|
||||
test('crash me', function() {
|
||||
client.scope({ context: 'chrome' }).executeScript(function() {
|
||||
const Cu = Components.utils;
|
||||
Cu.import('resource://gre/modules/ctypes.jsm');
|
||||
|
||||
var dies = function() {
|
||||
var zero = new ctypes.intptr_t(8);
|
||||
var badptr = ctypes.cast(zero, ctypes.PointerType(ctypes.int32_t));
|
||||
badptr.contents;
|
||||
};
|
||||
|
||||
dump('Et tu, Brute?');
|
||||
dies();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"phone": "test on phone",
|
||||
"tv": "test on tv",
|
||||
"common": "test on both"
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
'use strict';
|
||||
var Promise = require('promise');
|
||||
var assert = require('assert');
|
||||
|
||||
exports.help = {
|
||||
group: {
|
||||
title: 'CUSTOM XFOO',
|
||||
description: 'CUSTOM DESC'
|
||||
},
|
||||
|
||||
arguments: {
|
||||
'--code': {
|
||||
type: 'int',
|
||||
help: 'exit code'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
var expectedHost = {
|
||||
destroy: function() {
|
||||
return Promise.resolve();
|
||||
}
|
||||
};
|
||||
module.exports.createHost = function() {
|
||||
return Promise.resolve(expectedHost);
|
||||
};
|
||||
|
||||
module.exports.createSession = function(host, profile, opts) {
|
||||
assert.equal(host, expectedHost);
|
||||
process.exit(opts.code);
|
||||
return Promise.resolve();
|
||||
};
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"blacklist": {
|
||||
"test/bin/fixtures/manifest-test-skip.js": "Bug 12345 - whatever bug I want."
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
'use strict';
|
||||
marionette('test', {}, function() {
|
||||
process.exit(13);
|
||||
});
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
'use strict';
|
||||
marionette('test', {}, function() {
|
||||
process.exit(13);
|
||||
});
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
'use strict';
|
||||
marionette('test', {}, function() {
|
||||
process.exit(23);
|
||||
});
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"whitelist": ["test/bin/fixtures/manifest-test-use.js"]
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
marionette('device test', function() {
|
||||
var client = marionette.client();
|
||||
|
||||
test('test on phone', { devices: ['phone'] }, function() {
|
||||
1 + 1;
|
||||
});
|
||||
|
||||
test('test on tv', { devices: ['tv'] }, function() {
|
||||
1 + 1;
|
||||
});
|
||||
|
||||
test('test on both', { devices: ['phone', 'tv'] }, function() {
|
||||
1 + 1;
|
||||
});
|
||||
});
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
'use strict';
|
||||
marionette('test', function() {
|
||||
var client = marionette.client();
|
||||
|
||||
test('1+1', function() {
|
||||
1 + 1;
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue