blob: 58313e74b363ce133321ae6a6e04606b7b16399c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
"use strict";
var gTestTab;
var gContentAPI;
var gContentWindow;
add_task(setup_UITourTest);
add_UITour_task(function*() {
ok(!gBrowser.selectedBrowser.currentURI.spec.startsWith("about:reader"),
"Should not be in reader mode at start of test.");
yield gContentAPI.toggleReaderMode();
yield waitForConditionPromise(() => gBrowser.selectedBrowser.currentURI.spec.startsWith("about:reader"));
ok(gBrowser.selectedBrowser.currentURI.spec.startsWith("about:reader"),
"Should be in reader mode now.");
});
|