зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5327d3c2ae
Коммит
3f8e35ec5f
|
@ -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");
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче