gecko/browser/devtools/sourceeditor/test/browser_vimemacs.js

25 lines
663 B
JavaScript
Raw Normal View History

/* 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";
loadHelperScript("helper_codemirror_runner.js");
function test() {
requestLongerTimeout(3);
waitForExplicitFinish();
let tab = gBrowser.addTab();
gBrowser.selectedTab = tab;
let browser = gBrowser.getBrowserForTab(tab);
browser.addEventListener("load", function onLoad() {
browser.removeEventListener("load", onLoad, true);
runCodeMirrorTest(browser);
}, true);
browser.loadURI(URI);
}