Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Errors
- This test gets skipped with pattern: os == 'linux' && os_version == '18.04' && !debug && verify
- This test failed 1 times in the preceding 30 days. quicksearch this test
- Manifest: browser/components/uitour/test/browser.toml
"use strict";
var gTestTab;
var gContentAPI;
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."
);
});