2013-09-20 18:34:10 +00:00
|
|
|
/* 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";
|
|
|
|
|
2015-12-25 20:57:20 +00:00
|
|
|
const URI = "chrome://mochitests/content/browser/devtools/client/" +
|
|
|
|
"sourceeditor/test/codemirror/codemirror.html";
|
2014-08-05 16:01:00 +00:00
|
|
|
loadHelperScript("helper_codemirror_runner.js");
|
2013-09-20 18:34:10 +00:00
|
|
|
|
|
|
|
function test() {
|
2014-01-08 19:34:57 +00:00
|
|
|
requestLongerTimeout(3);
|
2013-09-20 18:34:10 +00:00
|
|
|
waitForExplicitFinish();
|
|
|
|
|
|
|
|
let tab = gBrowser.addTab();
|
|
|
|
gBrowser.selectedTab = tab;
|
|
|
|
|
|
|
|
let browser = gBrowser.getBrowserForTab(tab);
|
2014-08-05 16:01:00 +00:00
|
|
|
browser.addEventListener("load", function onLoad() {
|
|
|
|
browser.removeEventListener("load", onLoad, true);
|
|
|
|
runCodeMirrorTest(browser);
|
|
|
|
}, true);
|
2013-09-20 18:34:10 +00:00
|
|
|
|
2014-08-05 16:01:00 +00:00
|
|
|
browser.loadURI(URI);
|
2014-03-24 21:06:22 +00:00
|
|
|
}
|