Title: [203207] trunk/LayoutTests
- Revision
- 203207
- Author
- [email protected]
- Date
- 2016-07-13 18:45:18 -0700 (Wed, 13 Jul 2016)
Log Message
Unreviewed, rebaseline tests for ES6 TypedArray behavior.
* js/typed-array-mutated-during-set-expected.txt:
* js/typed-array-mutated-during-set.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (203206 => 203207)
--- trunk/LayoutTests/ChangeLog 2016-07-14 01:20:11 UTC (rev 203206)
+++ trunk/LayoutTests/ChangeLog 2016-07-14 01:45:18 UTC (rev 203207)
@@ -1,3 +1,10 @@
+2016-07-13 Keith Miller <[email protected]>
+
+ Unreviewed, rebaseline tests for ES6 TypedArray behavior.
+
+ * js/typed-array-mutated-during-set-expected.txt:
+ * js/typed-array-mutated-during-set.html:
+
2016-07-13 Michael Saboff <[email protected]>
Some bad unicode regex escapes aren't flagged as errors
Modified: trunk/LayoutTests/js/typed-array-mutated-during-set-expected.txt (203206 => 203207)
--- trunk/LayoutTests/js/typed-array-mutated-during-set-expected.txt 2016-07-14 01:20:11 UTC (rev 203206)
+++ trunk/LayoutTests/js/typed-array-mutated-during-set-expected.txt 2016-07-14 01:45:18 UTC (rev 203207)
@@ -5,7 +5,7 @@
PASS buffer.byteLength is 100
PASS buffer.byteLength is 0
-PASS byteArray.set(array) is undefined.
+PASS byteArray.set(array) Threw exception TypeError: Underlying ArrayBuffer has been detached from the view.
PASS successfullyParsed is true
TEST COMPLETE
Modified: trunk/LayoutTests/js/typed-array-mutated-during-set.html (203206 => 203207)
--- trunk/LayoutTests/js/typed-array-mutated-during-set.html 2016-07-14 01:20:11 UTC (rev 203206)
+++ trunk/LayoutTests/js/typed-array-mutated-during-set.html 2016-07-14 01:45:18 UTC (rev 203207)
@@ -6,29 +6,28 @@
<body>
<script>
description(
-"This test makes sure we don't crash when mutating a typed array while assigning to it"
+ "This test makes sure we don't crash when mutating a typed array while assigning to it"
);
var buffer = new ArrayBuffer(100);
var byteArray = new Uint8Array(buffer);
var mutator = {
- valueOf: function() {
- var w = new Worker("unneeded");
- shouldBe("buffer.byteLength", "100");
- w.postMessage(buffer, [buffer]);
- shouldBe("buffer.byteLength", "0");
- return 17;
- }
+ valueOf: function() {
+ var w = new Worker("unneeded");
+ shouldBe("buffer.byteLength", "100");
+ w.postMessage(buffer, [buffer]);
+ shouldBe("buffer.byteLength", "0");
+ return 17;
+ }
};
var errorCreator = {
- valueOf: function() {
- throw "fail"
- }
+ valueOf: function() {
+ throw "fail"
+ }
};
var array = [0, 0, 0, 0, mutator, errorCreator, 0, 0, 0, 0, 0];
-shouldBeUndefined("byteArray.set(array)");
-
+shouldThrow("byteArray.set(array)");
</script>
<script src=""
</body>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes