gecko-dev/browser/components/uitour/test/browser_UITour_forceReaderMode.js
Matthew Noorenberghe cec5ad7159 Bug 1244899 - Run dos2unix on UITour. r=me
--HG--
extra : commitid : 5VJJygNMmAr
extra : rebase_source : 7bb93d4549c584486312ec628acb34d7e8ab8fa5
2016-02-01 14:55:20 -08:00

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.");
});