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

Side by Side Diff: LayoutTests/fast/canvas/webgl/array-unit-tests.html

Issue 11889014: Merge 139459 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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/array-unit-tests-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 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../js/resources/js-test-pre.js"></script>
4 <script src="resources/webgl-test.js"></script> 4 <script src="resources/webgl-test.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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 testPassed("Construction of " + name + " with (null buffer, 0) threw exc eption"); 537 testPassed("Construction of " + name + " with (null buffer, 0) threw exc eption");
538 } 538 }
539 try { 539 try {
540 array = new type(null, 0, 0); 540 array = new type(null, 0, 0);
541 testFailed("Construction of " + name + " with (null buffer, 0, 0) should throw exception"); 541 testFailed("Construction of " + name + " with (null buffer, 0, 0) should throw exception");
542 } catch (e) { 542 } catch (e) {
543 testPassed("Construction of " + name + " with (null buffer, 0, 0) threw exception"); 543 testPassed("Construction of " + name + " with (null buffer, 0, 0) threw exception");
544 } 544 }
545 } 545 }
546 546
547 function testConstructionWithExceptionThrowingObject(type, name) {
548 var o = {};
549 Object.defineProperty(o, "length", { get: function() { throw "bail;" }});
550 try {
551 var array = new type(o);
552 } catch (e) {
553 }
554 testPassed("Construction of " + name + " with exception-throwing array-like object didn't crash unexpectedly");
555 }
556
547 function shouldThrowIndexSizeErr(func, text) { 557 function shouldThrowIndexSizeErr(func, text) {
548 var errorText = text + " should throw an exception"; 558 var errorText = text + " should throw an exception";
549 try { 559 try {
550 func(); 560 func();
551 testFailed(errorText); 561 testFailed(errorText);
552 } catch (e) { 562 } catch (e) {
553 testPassed(text + " threw an exception"); 563 testPassed(text + " threw an exception");
554 } 564 }
555 } 565 }
556 566
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 negativeTestSubarray(type, name); 1066 negativeTestSubarray(type, name);
1057 testSetBoundaryConditions(type, 1067 testSetBoundaryConditions(type,
1058 name, 1068 name,
1059 testCase.testValues, 1069 testCase.testValues,
1060 testCase.expectedValues); 1070 testCase.expectedValues);
1061 testConstructionBoundaryConditions(type, 1071 testConstructionBoundaryConditions(type,
1062 name, 1072 name,
1063 testCase.testValues, 1073 testCase.testValues,
1064 testCase.expectedValues); 1074 testCase.expectedValues);
1065 testConstructionWithNullBuffer(type, name); 1075 testConstructionWithNullBuffer(type, name);
1076 testConstructionWithExceptionThrowingObject(type, name);
1066 testConstructionWithOutOfRangeValues(type, name); 1077 testConstructionWithOutOfRangeValues(type, name);
1067 testConstructionWithNegativeOutOfRangeValues(type, name); 1078 testConstructionWithNegativeOutOfRangeValues(type, name);
1068 testConstructionWithUnalignedOffset(type, name, testCase.elementSizeInBytes) ; 1079 testConstructionWithUnalignedOffset(type, name, testCase.elementSizeInBytes) ;
1069 testConstructionWithUnalignedLength(type, name, testCase.elementSizeInBytes) ; 1080 testConstructionWithUnalignedLength(type, name, testCase.elementSizeInBytes) ;
1070 testConstructionOfHugeArray(type, name, testCase.elementSizeInBytes); 1081 testConstructionOfHugeArray(type, name, testCase.elementSizeInBytes);
1071 testConstructionWithBothArrayBufferAndLength(type, name, testCase.elementSiz eInBytes); 1082 testConstructionWithBothArrayBufferAndLength(type, name, testCase.elementSiz eInBytes);
1072 testConstructionWithSubPortionOfArrayBuffer(type, name, testCase.elementSize InBytes); 1083 testConstructionWithSubPortionOfArrayBuffer(type, name, testCase.elementSize InBytes);
1073 testSubarrayWithOutOfRangeValues(type, name, testCase.elementSizeInBytes); 1084 testSubarrayWithOutOfRangeValues(type, name, testCase.elementSizeInBytes);
1074 testSubarrayWithDefaultValues(type, name, testCase.elementSizeInBytes); 1085 testSubarrayWithDefaultValues(type, name, testCase.elementSizeInBytes);
1075 testSettingFromArrayWithOutOfRangeOffset(type, name); 1086 testSettingFromArrayWithOutOfRangeOffset(type, name);
(...skipping 14 matching lines...) Expand all
1090 printSummary(); 1101 printSummary();
1091 } 1102 }
1092 1103
1093 runTests(); 1104 runTests();
1094 1105
1095 </script> 1106 </script>
1096 <script src="../../js/resources/js-test-post.js"></script> 1107 <script src="../../js/resources/js-test-post.js"></script>
1097 1108
1098 </body> 1109 </body>
1099 </html> 1110 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/webgl/array-unit-tests-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698