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
7
gaia/apps/bookmark/test/marionette/client_options.js
Executable file
7
gaia/apps/bookmark/test/marionette/client_options.js
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
/* global module */
|
||||
module.exports = {
|
||||
settings: {
|
||||
'devtools.pseudolocalization.enabled': false,
|
||||
'language.current': 'en-US'
|
||||
}
|
||||
};
|
||||
12
gaia/apps/bookmark/test/marionette/fixtures/app.html
Executable file
12
gaia/apps/bookmark/test/marionette/fixtures/app.html
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>My App Title</title>
|
||||
<link rel="manifest" href="manifest.json">
|
||||
</head>
|
||||
<body>
|
||||
<header><h1>App</h1></header>
|
||||
<section>I am an app</section>
|
||||
</body>
|
||||
</html>
|
||||
BIN
gaia/apps/bookmark/test/marionette/fixtures/favicon.ico
Executable file
BIN
gaia/apps/bookmark/test/marionette/fixtures/favicon.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 2 KiB |
11
gaia/apps/bookmark/test/marionette/fixtures/manifest.json
Executable file
11
gaia/apps/bookmark/test/marionette/fixtures/manifest.json
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "My App Name",
|
||||
"short_name": "My App Shortname",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
43
gaia/apps/bookmark/test/marionette/install_app_test.js
Executable file
43
gaia/apps/bookmark/test/marionette/install_app_test.js
Executable file
|
|
@ -0,0 +1,43 @@
|
|||
'use strict';
|
||||
/* global __dirname, require, marionette, suiteSetup, suiteTeardown */
|
||||
/* global setup, test */
|
||||
|
||||
var Bookmark = require('../../../../apps/system/test/marionette/lib/bookmark');
|
||||
var Server = require('../../../../shared/test/integration/server');
|
||||
|
||||
marionette('Bookmark -', function() {
|
||||
var options = require(__dirname + '/client_options.js');
|
||||
options.settings['dev.gaia.pinning_the_web'] = false;
|
||||
var client = marionette.client({
|
||||
profile: options,
|
||||
desiredCapabilities: { raisesAccessibilityExceptions: false }
|
||||
});
|
||||
var bookmark, server, system;
|
||||
|
||||
suiteSetup(function(done) {
|
||||
Server.create(__dirname + '/fixtures/', function(err, _server) {
|
||||
server = _server;
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
suiteTeardown(function() {
|
||||
server.stop();
|
||||
});
|
||||
|
||||
setup(function() {
|
||||
system = client.loader.getAppClass('system');
|
||||
system.waitForFullyLoaded();
|
||||
bookmark = new Bookmark(client, server);
|
||||
});
|
||||
|
||||
test('Install app from page', function() {
|
||||
|
||||
var url = server.url('app.html');
|
||||
|
||||
client.switchToFrame();
|
||||
bookmark.openAndInstall(url, 'My App Shortname', '/favicon.ico');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Reference in a new issue