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

--HG--
extra : rebase_source : f37e89e44dbaaf1df46529f66b75b0c7d378b465
This commit is contained in:
Margaret Leibovic 2015-03-17 09:23:19 -07:00
Родитель 5327d3c2ae
Коммит 3f8e35ec5f
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -490,7 +490,7 @@ let AboutReaderListener = {
receiveMessage: function(message) { receiveMessage: function(message) {
switch (message.name) { switch (message.name) {
case "Reader:ParseDocument": 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); content.document.location = "about:reader?url=" + encodeURIComponent(message.data.url);
break; break;
} }

Просмотреть файл

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