browser_dbg-editor-mode.js (616B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ 4 5 // Tests that the editor sets the correct mode for different file 6 // types 7 8 "use strict"; 9 10 add_task(async function () { 11 const dbg = await initDebugger("doc-scripts.html", "simple1.js"); 12 13 await selectSource(dbg, "simple1.js"); 14 is(getEditorFileMode(dbg), "javascript", "Mode is correct"); 15 16 await selectSource(dbg, "doc-scripts.html"); 17 is(getEditorFileMode(dbg), "javascript", "Mode is correct"); 18 });