mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
35 lines
899 B
JavaScript
35 lines
899 B
JavaScript
/* vim: set ts=2 et sw=2 tw=80: */
|
|
/* 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/codemirror.html";
|
|
|
|
function test() {
|
|
requestLongerTimeout(2);
|
|
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);
|
|
} |