michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: const Cc = Components.classes; michael@0: const Ci = Components.interfaces; michael@0: michael@0: function run_test() { michael@0: var file = do_get_file("bug451678_subscript.js"); michael@0: var ios = Cc["@mozilla.org/network/io-service;1"] michael@0: .getService(Ci.nsIIOService); michael@0: var uri = ios.newFileURI(file); michael@0: var scriptLoader = Cc["@mozilla.org/moz/jssubscript-loader;1"] michael@0: .getService(Ci.mozIJSSubScriptLoader); michael@0: var srvScope = {}; michael@0: scriptLoader.loadSubScript(uri.spec, srvScope); michael@0: do_check_true('makeTags' in srvScope && srvScope.makeTags instanceof Function); michael@0: }