Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: LayoutTests/crash/array-splice.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <script src="../fast/js/resources/js-test-pre.js"></script> 2 <script src="../resources/js-test.js"></script>
3 <script> 3 <script>
4 description( 4 description(
5 "This tests array.splice behavior." 5 "This tests array.splice behavior."
6 ); 6 );
7 7
8 var arr = ['a','b','c','d']; 8 var arr = ['a','b','c','d'];
9 shouldBe("arr", "['a','b','c','d']"); 9 shouldBe("arr", "['a','b','c','d']");
10 shouldBe("arr.splice(2)", "['c','d']"); 10 shouldBe("arr.splice(2)", "['c','d']");
11 shouldBe("arr", "['a','b']"); 11 shouldBe("arr", "['a','b']");
12 shouldBe("arr.splice(0)", "['a','b']"); 12 shouldBe("arr.splice(0)", "['a','b']");
(...skipping 20 matching lines...) Expand all
33 shouldBe("arr.splice(2, -1)", "[]") 33 shouldBe("arr.splice(2, -1)", "[]")
34 shouldBe("arr", "['a','b','c']"); 34 shouldBe("arr", "['a','b','c']");
35 shouldBe("arr.splice(2, 100)", "['c']") 35 shouldBe("arr.splice(2, 100)", "['c']")
36 shouldBe("arr", "['a','b']"); 36 shouldBe("arr", "['a','b']");
37 37
38 // Check this doesn't crash. 38 // Check this doesn't crash.
39 try { 39 try {
40 String(Array(0xFFFFFFFD).splice(0)); 40 String(Array(0xFFFFFFFD).splice(0));
41 } catch (e) { } 41 } catch (e) { }
42 </script> 42 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698