Enumerator-WebViewHost.js 782 B

12345678910111213141516171819
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. WScript.LoadScriptFile("..\\UnitTestFramework\\UnitTestFramework.js", "self");
  6. var tests = {
  7. test01: {
  8. name: "Check that Enumerator is allowed for HostType = Web View",
  9. body: function () {
  10. var arr = ["x", "y"];
  11. var enu = new Enumerator(arr);
  12. for (enu.moveFirst(); !enu.atEnd(); enu.moveNext()) helpers.writeln(enu.item());
  13. }
  14. },
  15. };
  16. testRunner.runTests(tests);