fune/dom/base/test/jsmodules/importmaps/module_simpleImportMap.js
Yoshi Cheng-Hao Huang dd043f6fe1 Bug 1688879 - Part 9: mochitest, xpcshell-test and web-platform-test for import maps. r=jonco,yulia,robwu
mochitest and web-platform-test are verifying import maps are supported.

Moving the mochitest into its own folder
(dom/base/test/jsmodules/importmaps) as the prefs needs to be in [DEFAULT]
section in chrome.ini, see [1].

xpcshell-test is used to verify import maps are _NOT_ supported for web ext
content scripts.

[1]: https://searchfox.org/mozilla-central/rev/dd404f43c7198b1076fe5d7e05b1e6b1a03bdfeb/testing/mochitest/runtests.py#1725

Differential Revision: https://phabricator.services.mozilla.com/D142077
2022-05-05 21:19:04 +00:00

2 lines
40 B
JavaScript

import { x } from "simple";
result = x;