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
45
gaia/apps/ftu/test/marionette/ftu_test.js
Executable file
45
gaia/apps/ftu/test/marionette/ftu_test.js
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
'use strict';
|
||||
|
||||
var Ftu = require('./lib/ftu');
|
||||
var assert = require('chai').assert;
|
||||
|
||||
marionette('First Time Use >', function() {
|
||||
var ftu;
|
||||
var client = marionette.client({ profile: Ftu.clientOptions });
|
||||
|
||||
setup(function() {
|
||||
ftu = new Ftu(client);
|
||||
});
|
||||
|
||||
test('FTU comes up on profile generation', function() {
|
||||
client.apps.switchToApp(Ftu.URL);
|
||||
});
|
||||
|
||||
test('FTU click thru', function() {
|
||||
client.apps.switchToApp(Ftu.URL);
|
||||
ftu.clickThruToFinish();
|
||||
});
|
||||
|
||||
test('FTU user timing', function() {
|
||||
client.apps.switchToApp(Ftu.URL);
|
||||
ftu.waitForFtuReady();
|
||||
|
||||
var markersByName = client.executeScript(function() {
|
||||
var byName = {};
|
||||
var markers =
|
||||
window.wrappedJSObject.performance.getEntriesByType('mark');
|
||||
markers.forEach(function(mark) {
|
||||
byName[mark.name] = (byName[mark.name] || 0) + 1;
|
||||
});
|
||||
return byName;
|
||||
});
|
||||
|
||||
console.log('user timing markers:', markersByName);
|
||||
|
||||
assert.ok(markersByName.navigationLoaded);
|
||||
assert.ok(markersByName.navigationInteractive);
|
||||
assert.ok(markersByName.visuallyLoaded);
|
||||
assert.ok(markersByName.contentInteractive);
|
||||
assert.ok(markersByName.fullyLoaded);
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue