Skip to content

Commit 91ec1ef

Browse files
committed
[1.8>1.9] [MERGE #4646 @obastemur] typedarray: new builtin_from test
Merge pull request #4646 from obastemur:new_arr_test Moving a test case from release brach. Original test credit goes to @curtisman
2 parents 5d123b4 + 05f4157 commit 91ec1ef

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Diff for: test/typedarray/builtin_from.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
6+
var a = "yy?x¼$w 5?åoê?»'i?ºE-N¼ë6_»\\ d";
7+
if (Uint8Array.from(a, c=>c.charCodeAt(0)) + "" == "121,121,63,120,253,36,119,32,32,32,32,53,63,253,111,253,63,253,39,105,63,253,69,45,78,253,253,54,95,253,92,32,100")
8+
{
9+
print("pass");
10+
}

Diff for: test/typedarray/rlexe.xml

+6
Original file line numberDiff line numberDiff line change
@@ -382,4 +382,10 @@ Below test fails with difference in space. Investigate the cause and re-enable t
382382
<files>CrossSiteVirtual.js</files>
383383
</default>
384384
</test>
385+
<test>
386+
<default>
387+
<files>builtin_from.js</files>
388+
<tags>typedarray</tags>
389+
</default>
390+
</test>
385391
</regress-exe>

0 commit comments

Comments
 (0)