зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1271067 - Make test_bug1004814 more reliable on non-e10s, r=baku
This commit is contained in:
Родитель
6274f21dc8
Коммит
3c3f655608
|
@ -3,11 +3,11 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
const TEST_URI = "http://example.com/browser/dom/tests/browser/test_bug1004814.html";
|
||||
|
||||
add_task(function*() {
|
||||
yield BrowserTestUtils.withNewTab(TEST_URI, function*(aBrowser) {
|
||||
yield BrowserTestUtils.withNewTab("about:blank", function*(aBrowser) {
|
||||
let duration = yield ContentTask.spawn(aBrowser, null, function (opts) {
|
||||
const TEST_URI = "http://example.com/browser/dom/tests/browser/test_bug1004814.html";
|
||||
|
||||
return new Promise(resolve => {
|
||||
let ConsoleObserver = {
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver]),
|
||||
|
@ -25,6 +25,9 @@ add_task(function*() {
|
|||
};
|
||||
|
||||
Services.obs.addObserver(ConsoleObserver, "console-api-log-event", false);
|
||||
|
||||
// Redirect the browser to the correct document to start the test
|
||||
content.document.location = TEST_URI;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче