fune/browser/components/uitour/test/browser_UITour_toggleReaderMode.js
Victor Porof 1f830c96da Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36042

--HG--
extra : source : d3afcafdce650a6f36cebbc126ee93b17f13cf52
2019-07-05 09:53:32 +02:00

22 lines
548 B
JavaScript

"use strict";
var gTestTab;
var gContentAPI;
var gContentWindow;
add_task(setup_UITourTest);
add_UITour_task(async function() {
ok(
!gBrowser.selectedBrowser.currentURI.spec.startsWith("about:reader"),
"Should not be in reader mode at start of test."
);
await gContentAPI.toggleReaderMode();
await waitForConditionPromise(() =>
gBrowser.selectedBrowser.currentURI.spec.startsWith("about:reader")
);
ok(
gBrowser.selectedBrowser.currentURI.spec.startsWith("about:reader"),
"Should be in reader mode now."
);
});