blob: dc55f441b47269111601c643664671833f9b1f79 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
WScript.LoadScriptFile("..\\UnitTestFramework\\UnitTestFramework.js", "self");
var tests = {
test01: {
name: "Check that Enumerator is deprecated for HostType = Application",
body: function () {
assert.throws(
function() {
var arr = ["x", "y"];
var enu = new Enumerator(arr);
}, ReferenceError);
}
},
};
testRunner.runTests(tests);