2014-01-15 12:04:19 -08:00
|
|
|
/* 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";
|
2014-08-05 09:01:00 -07:00
|
|
|
loadHelperScript("helper_codemirror_runner.js");
|
2014-01-15 12:04:19 -08:00
|
|
|
|
|
|
|
function test() {
|
|
|
|
requestLongerTimeout(3);
|
|
|
|
waitForExplicitFinish();
|
|
|
|
|
|
|
|
let tab = gBrowser.addTab();
|
|
|
|
gBrowser.selectedTab = tab;
|
|
|
|
|
|
|
|
let browser = gBrowser.getBrowserForTab(tab);
|
2014-08-05 09:01:00 -07:00
|
|
|
browser.addEventListener("load", function onLoad() {
|
|
|
|
browser.removeEventListener("load", onLoad, true);
|
|
|
|
runCodeMirrorTest(browser);
|
|
|
|
}, true);
|
2014-01-15 12:04:19 -08:00
|
|
|
|
2014-08-05 09:01:00 -07:00
|
|
|
browser.loadURI(URI);
|
2014-03-24 14:06:22 -07:00
|
|
|
}
|