VulpesOS/gaia/tests/jsmarionette/client/marionette-client/test/marionette/index-test.js
OverSu b38dea0597 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.
2026-09-30 23:13:03 +02:00

32 lines
769 B
JavaScript
Executable file

/* global assert, helper */
'use strict';
suite('marionette/index', function() {
var Index;
suiteSetup(function() {
Index = helper.requireLib('marionette/index');
});
test('should have paths', function() {
assert.instanceOf(Index.Element, Object);
assert.instanceOf(Index.Client, Object);
assert.instanceOf(Index.Drivers, Object);
assert.instanceOf(Index.CommandStream, Object);
assert.instanceOf(Index.Drivers.Abstract, Object);
if (typeof(window) === 'undefined') {
assert.instanceOf(Index.Drivers.Tcp, Object);
} else {
try {
if (typeof(window.navigator.mozTCPSocket) !== 'undefined') {
assert.instanceOf(Index.Drivers.MozTcp, Object);
}
} catch(e) {
}
}
});
});