Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShortDevelopment committed Jun 6, 2024
1 parent cd03239 commit 5ba6731
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/es6/ES6ArrayAPI_slow.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Copyright (c) ChakraCore Project Contributors. 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");

const uint32Max = 4294967295;
const tests = [
{
name: "Issue #6770 (Assertion failure in copyWithin)",
body() {
const array = [];
array.length = uint32Max;
array.copyWithin();
}
}
];
testRunner.runTests(tests, { verbose: WScript.Arguments[0] != "summary" });
7 changes: 7 additions & 0 deletions test/es6/rlexe.xml
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,13 @@
<compile-flags>-ES6ObjectLiterals -args summary -endargs</compile-flags>
</default>
</test>
<test>
<default>
<files>ES6ArrayAPI_slow.js</files>
<compile-flags>-ES6ObjectLiterals -args summary -endargs</compile-flags>
<tags>Slow</tags>
</default>
</test>
<test>
<default>
<files>ES6ArrayUseConstructor.js</files>
Expand Down

0 comments on commit 5ba6731

Please sign in to comment.