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

Side by Side Diff: LayoutTests/fast/canvas/webgl/script-tests/array-message-passing.js

Issue 18316003: Revert "Use V8 implementation of ArrayBuffer in Blink." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months 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
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/WebArrayBuffer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 window.jsTestIsAsync = true; 1 window.jsTestIsAsync = true;
2 2
3 description('Test passing ArrayBuffers and ArrayBufferViews in messages.'); 3 description('Test passing ArrayBuffers and ArrayBufferViews in messages.');
4 window.testsComplete = 0; 4 window.testsComplete = 0;
5 5
6 function classCompare(testName, got, sent) { 6 function classCompare(testName, got, sent) {
7 var classString = Object.prototype.toString; 7 var classString = Object.prototype.toString;
8 var gotClass = classString.call(got); 8 var gotClass = classString.call(got);
9 var sentClass = classString.call(sent); 9 var sentClass = classString.call(sent);
10 if (gotClass !== sentClass) { 10 if (gotClass !== sentClass) {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 } catch(e) { 200 } catch(e) {
201 testFailed(currentTest[0] + ": unexpected exception " + e); 201 testFailed(currentTest[0] + ": unexpected exception " + e);
202 } 202 }
203 doneTest(); 203 doneTest();
204 } 204 }
205 window.addEventListener('message', windowHandleMessage); 205 window.addEventListener('message', windowHandleMessage);
206 206
207 for (var t = 0; t < testList.length; ++t) { 207 for (var t = 0; t < testList.length; ++t) {
208 var currentTest = testList[t]; 208 var currentTest = testList[t];
209 var message = {testNum: t, testData: currentTest[1]}; 209 var message = {testNum: t, testData: currentTest[1]};
210 try { 210 window.postMessage(message, '*');
211 window.postMessage(message, '*');
212 } catch(e) {
213 testFailed(currentTest[0], ": unexpected postMessage exception " + e);
214 doneTest();
215 }
216 } 211 }
OLDNEW
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/WebArrayBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698