Bug 1588846 - move browser_bug839103.js somewhere more topical and make it pass with fission enabled, r=mccr8

Differential Revision: https://phabricator.services.mozilla.com/D49322

--HG--
rename : browser/base/content/test/general/browser_bug839103.js => layout/base/tests/browser_bug839103.js
rename : browser/base/content/test/general/bug839103.css => layout/base/tests/bug839103.css
rename : browser/base/content/test/general/test_bug839103.html => layout/base/tests/file_bug839103.html
extra : moz-landing-system : lando
This commit is contained in:
Gijs Kruitbosch 2019-10-15 19:37:55 +00:00
Родитель 00077cbcd6
Коммит 472c1baed6
5 изменённых файлов: 5 добавлений и 10 удалений

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

@ -23,7 +23,6 @@ support-files =
bug792517-2.html
bug792517.html
bug792517.sjs
bug839103.css
clipboard_pastefile.html
discovery.html
download_page.html
@ -46,7 +45,6 @@ support-files =
searchSuggestionEngine2.xml
test_bug462673.html
test_bug628179.html
test_bug839103.html
title_test.svg
unknownContentType_file.pif
unknownContentType_file.pif^headers^
@ -222,9 +220,6 @@ skip-if = os == 'linux' && !debug && bits == 64 # Bug 1556066
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug832435.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug839103.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
skip-if = fission
[browser_bug882977.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug1015721.js]

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

@ -1,6 +1,10 @@
[DEFAULT]
[browser_bug617076.js]
[browser_bug839103.js]
support-files =
file_bug839103.html
bug839103.css
[browser_disableDialogs_onbeforeunload.js]
[browser_onbeforeunload_only_after_interaction.js]
[browser_onbeforeunload_only_after_interaction_in_frame.js]

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

@ -5,7 +5,7 @@ const gTestRoot = getRootDirectory(gTestPath).replace(
add_task(async function test() {
await BrowserTestUtils.withNewTab(
{ gBrowser, url: "about:blank" },
{ gBrowser, url: gTestRoot + "file_bug839103.html" },
async function(browser) {
await ContentTask.spawn(browser, gTestRoot, testBody);
}
@ -17,10 +17,6 @@ add_task(async function test() {
async function testBody(testRoot) {
const gStyleSheet = "bug839103.css";
let loaded = ContentTaskUtils.waitForEvent(this, "load", true);
content.location = testRoot + "test_bug839103.html";
await loaded;
function unexpectedContentEvent(event) {
ok(false, "Received a " + event.type + " event on content");
}