mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-06-29 04:38:56 +00:00
15 lines
503 B
JavaScript
15 lines
503 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
// Tests that the editor sets the correct mode for different file
|
|
// types
|
|
add_task(function* () {
|
|
const dbg = yield initDebugger("doc-scripts.html");
|
|
|
|
yield selectSource(dbg, "simple1.js");
|
|
is(dbg.win.cm.getOption("mode").name, "javascript", "Mode is correct");
|
|
|
|
yield selectSource(dbg, "doc-scripts.html");
|
|
is(dbg.win.cm.getOption("mode").name, "htmlmixed", "Mode is correct");
|
|
});
|