Bug14859460.js 834 B

1234567891011121314151617181920212223
  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");
  6. let tests = [
  7. {
  8. name: "repro",
  9. body: function() {
  10. assert.isTrue((/^(c|ctrl|control)$/i).test('Ctrl'));
  11. }
  12. },
  13. {
  14. name: "no repro",
  15. body: function() {
  16. assert.isTrue((/^(c|ctrl|control)/i).test('Ctrl'));
  17. }
  18. }
  19. ];
  20. testRunner.runTests(tests, { verbose: WScript.Arguments[0] != "summary" });