Bug 1139678 - (Part 2) Update non-reader-able test URL in browser_readerMode.js. r=Gijs

This commit is contained in:
Margaret Leibovic 2015-03-17 09:23:19 -07:00
parent aaa20d3d7c
commit ff94ebea21
2 changed files with 2 additions and 2 deletions

View File

@ -490,7 +490,7 @@ let AboutReaderListener = {
receiveMessage: function(message) {
switch (message.name) {
case "Reader:ParseDocument":
this._articlePromise = ReaderMode.parseDocument(content.document);
this._articlePromise = ReaderMode.parseDocument(content.document).catch(Cu.reportError);
content.document.location = "about:reader?url=" + encodeURIComponent(message.data.url);
break;
}

View File

@ -71,7 +71,7 @@ add_task(function* () {
// Load a new tab that is NOT reader-able.
let newTab = gBrowser.selectedTab = gBrowser.addTab();
yield promiseTabLoadEvent(newTab, TEST_PATH + "download_page.html");
yield promiseTabLoadEvent(newTab, "about:robots");
yield promiseWaitForCondition(() => readerButton.hidden);
is_element_hidden(readerButton, "Reader mode button is not present on a non-reader-able page");