mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
34 lines
862 B
JavaScript
34 lines
862 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
const HOST = 'mochi.test:8888';
|
|
const URI = "http://" + HOST + "/browser/browser/devtools/sourceeditor/test/vimemacs.html";
|
|
|
|
function test() {
|
|
requestLongerTimeout(3);
|
|
waitForExplicitFinish();
|
|
|
|
let tab = gBrowser.addTab();
|
|
gBrowser.selectedTab = tab;
|
|
|
|
let browser = gBrowser.getBrowserForTab(tab);
|
|
browser.loadURI(URI);
|
|
|
|
function check() {
|
|
var win = browser.contentWindow.wrappedJSObject;
|
|
var doc = win.document;
|
|
var out = doc.getElementById("status");
|
|
|
|
if (!out || !out.classList.contains("done"))
|
|
return void setTimeout(check, 100);
|
|
|
|
ok(!win.failed, "CodeMirror tests all passed");
|
|
|
|
while (gBrowser.tabs.length > 1) gBrowser.removeCurrentTab();
|
|
finish();
|
|
}
|
|
|
|
setTimeout(check, 100);
|
|
} |