fast/js/dfg-byte-array-put.html should assert the array size
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 03:45:17 +0000 (03:45 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 03:45:17 +0000 (03:45 +0000)
https://bugs.webkit.org/show_bug.cgi?id=77173

Reviewed by Andy Estes.

* fast/js/dfg-byte-array-put-expected.txt:
* fast/js/script-tests/dfg-byte-array-put.js:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106081 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/js/dfg-byte-array-put-expected.txt
LayoutTests/fast/js/script-tests/dfg-byte-array-put.js

index 7c417f7..9cb7a22 100644 (file)
@@ -1,3 +1,13 @@
+2012-01-26  Filip Pizlo  <fpizlo@apple.com>
+
+        fast/js/dfg-byte-array-put.html should assert the array size
+        https://bugs.webkit.org/show_bug.cgi?id=77173
+
+        Reviewed by Andy Estes.
+
+        * fast/js/dfg-byte-array-put-expected.txt:
+        * fast/js/script-tests/dfg-byte-array-put.js:
+
 2012-01-26  Yuzo Fujishima  <yuzo@google.com>
 
         [Chromium] Unreviewed test expectation change.
index 53d66e6..2eedc04 100644 (file)
@@ -3,6 +3,7 @@ This tests that the DFG JIT's optimizations for byte arrays work as expected.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
+PASS data.length is 400
 PASS doGet(data, 0) is 0
 PASS doGet(data, 1) is 0
 PASS doGet(data, 2) is 0
index e8c64b4..82853e9 100644 (file)
@@ -15,6 +15,8 @@ context = canvas.getContext("2d");
 imageData = context.createImageData(10,10);
 data = imageData.data;
 
+shouldBe("data.length", "400");
+
 for (var i = 0; i < 1000; ++i) {
     doPut(data, i % 100, i - 100);
     var expectedValue;