mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
cec5ad7159
--HG-- extra : commitid : 5VJJygNMmAr extra : rebase_source : 7bb93d4549c584486312ec628acb34d7e8ab8fa5
18 lines
592 B
JavaScript
18 lines
592 B
JavaScript
"use strict";
|
|
|
|
var gTestTab;
|
|
var gContentAPI;
|
|
var gContentWindow;
|
|
|
|
add_task(setup_UITourTest);
|
|
|
|
add_UITour_task(function*() {
|
|
ok(!gBrowser.selectedBrowser.isArticle, "Should not be an article when we start");
|
|
ok(document.getElementById("reader-mode-button").hidden, "Button should be hidden.");
|
|
yield gContentAPI.forceShowReaderIcon();
|
|
yield waitForConditionPromise(() => gBrowser.selectedBrowser.isArticle);
|
|
ok(gBrowser.selectedBrowser.isArticle, "Should suddenly be an article.");
|
|
ok(!document.getElementById("reader-mode-button").hidden, "Button should now be visible.");
|
|
});
|
|
|