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

Side by Side Diff: LayoutTests/fast/canvas/webgl/data-view-test.html

Issue 6596048: Merge 78738 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/webgl/data-view-test-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" href="../../js/resources/js-test-style.css"/> 3 <link rel="stylesheet" href="../../js/resources/js-test-style.css"/>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id="description"></div> 7 <div id="description"></div>
8 <div id="console"></div> 8 <div id="console"></div>
9 9
10 <script> 10 <script>
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 test(isTestingGet, "Float64", -1, "0"); 227 test(isTestingGet, "Float64", -1, "0");
228 test(isTestingGet, "Float64", -5, "0"); 228 test(isTestingGet, "Float64", -5, "0");
229 test(isTestingGet, "Float64", -9, "0"); 229 test(isTestingGet, "Float64", -9, "0");
230 } 230 }
231 231
232 function runConstructorTests() 232 function runConstructorTests()
233 { 233 {
234 arayBuffer = (new Uint8Array([1, 2])).buffer; 234 arayBuffer = (new Uint8Array([1, 2])).buffer;
235 235
236 debug(""); 236 debug("");
237 debug("Test for constructor not called as a function");
238 var expr = "DataView(new ArrayBuffer)";
239 // Use try/catch instead of calling shouldThrow to avoid different exception message being reported from different platform.
240 try {
241 eval(expr);
242 testFailed(expr + " does not throw exception");
243 } catch (e) {
244 testPassed(expr + " threw exception");
245 }
246
247 debug("");
237 debug("Test for constructor taking 1 argument"); 248 debug("Test for constructor taking 1 argument");
238 shouldBeDefined("view = new DataView(arayBuffer)"); 249 shouldBeDefined("view = new DataView(arayBuffer)");
239 shouldBe("view.byteOffset", "0"); 250 shouldBe("view.byteOffset", "0");
240 shouldBe("view.byteLength", "2"); 251 shouldBe("view.byteLength", "2");
241 252
242 debug(""); 253 debug("");
243 debug("Test for constructor taking 2 arguments"); 254 debug("Test for constructor taking 2 arguments");
244 shouldBeDefined("view = new DataView(arayBuffer, 1)"); 255 shouldBeDefined("view = new DataView(arayBuffer, 1)");
245 shouldBe("view.byteOffset", "1"); 256 shouldBe("view.byteOffset", "1");
246 shouldBe("view.byteLength", "1"); 257 shouldBe("view.byteLength", "1");
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 runConstructorTests(); 348 runConstructorTests();
338 runGetTests(); 349 runGetTests();
339 runSetTests(); 350 runSetTests();
340 runIndexingTests(); 351 runIndexingTests();
341 successfullyParsed = true; 352 successfullyParsed = true;
342 </script> 353 </script>
343 354
344 <script src="../../js/resources/js-test-post.js"></script> 355 <script src="../../js/resources/js-test-post.js"></script>
345 </body> 356 </body>
346 </html> 357 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/webgl/data-view-test-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698