Bug 1590075 - Enable browser_bug1004814.js for Fission, r=nika

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrea Marchesini 2019-10-22 15:34:38 +00:00
Родитель be52d072f6
Коммит 088e2cf29c
2 изменённых файлов: 6 добавлений и 12 удалений

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

@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
add_task(async function() {
await BrowserTestUtils.withNewTab("about:blank", async function(aBrowser) {
let duration = await ContentTask.spawn(aBrowser, null, function(opts) {
const TEST_URI =
"http://example.com/browser/dom/tests/browser/test_bug1004814.html";
const TEST_URI =
"http://example.com/browser/dom/tests/browser/test_bug1004814.html";
await BrowserTestUtils.withNewTab(TEST_URI, async aBrowser => {
let duration = await ContentTask.spawn(aBrowser, null, function(opts) {
return new Promise(resolve => {
let ConsoleObserver = {
QueryInterface: ChromeUtils.generateQI([Ci.nsIObserver]),
@ -30,8 +30,8 @@ add_task(async function() {
Services.obs.addObserver(ConsoleObserver, "console-api-log-event");
// Redirect the browser to the correct document to start the test
content.document.location = TEST_URI;
var w = new content.Worker("worker_bug1004814.js");
w.postMessage(true);
});
});

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

@ -4,11 +4,5 @@
<title>Console API test bug 1004814</title>
</head>
<body>
<script>
var w = new Worker("worker_bug1004814.js");
w.postMessage(true);
</script>
</body>
</html>