Changeset 19397 in webkit
- Timestamp:
- Feb 4, 2007 6:54:45 PM (17 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r19391 r19397 1 2007-02-04 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Darin. 4 5 Patch for http://bugs.webkit.org/show_bug.cgi?id=12562 6 Fix test cases that are now spewing console errors that 7 they are not testing for 8 9 * fast/events/iframe-object-onload-expected.txt: 10 * fast/events/iframe-object-onload.html: Change nil to null. 11 * fast/forms/display-none-in-onchange-keyboard-expected.txt: 12 * fast/forms/display-none-in-onchange-keyboard.html: Add missing id to div, change 13 its text, and change the resulting text. 14 * fast/forms/input-text-click-inside-expected.checksum: 15 * fast/forms/input-text-click-inside-expected.png: 16 * fast/forms/input-text-click-inside-expected.txt: 17 * fast/forms/input-text-click-inside.html: Change moveTo(x,y) to mouseMoveTo(x,y). 18 * fast/forms/input-text-click-outside-expected.txt: 19 * fast/forms/input-text-click-outside.html: Ditto. 20 * fast/js/array-foreach-expected.txt: 21 * fast/js/array-foreach.html: Add try-catch blocks to catch exceptions and print them and 22 general cleanup. 23 * fast/js/array-some-expected.txt: 24 * fast/js/array-some.html: Ditto. 25 * fast/table/click-near-anonymous-table-expected.checksum: 26 * fast/table/click-near-anonymous-table-expected.png: 27 * fast/table/click-near-anonymous-table-expected.txt: 28 * fast/table/click-near-anonymous-table.html: Change timeForward(ms) to leapForward(ms) and 29 change the amount of time from 500ms to 1000ms to avoid clicking. 30 1 31 2007-02-03 Geoffrey Garen <ggaren@apple.com> 2 32 -
trunk/LayoutTests/fast/events/iframe-object-onload-expected.txt
r19343 r19397 1 CONSOLE MESSAGE: line 19: ReferenceError: Can't find variable: nil2 1 This test checks that onload events fire on iframe and object elements when their contents finish loading, and that these are separate event objects from those that fire on the body inside the frame. If it passes, you will see 6 blocks below, each with a three-line message that ends in false. 3 2 Fired load event on body inside iframe -
trunk/LayoutTests/fast/events/iframe-object-onload.html
r12587 r19397 17 17 } 18 18 19 var innerEvent = n il;19 var innerEvent = null; 20 20 21 21 function logOuter(msg, event) -
trunk/LayoutTests/fast/forms/display-none-in-onchange-keyboard-expected.txt
r19343 r19397 1 CONSOLE MESSAGE: line 20: Null value2 1 3 2 This tests that setting display to 'none' for an element that's about to get focus doesn't crash. -
trunk/LayoutTests/fast/forms/display-none-in-onchange-keyboard.html
r15530 r19397 18 18 eventSender.keyDown('\t', new Array()); 19 19 20 document.getElementById('result').innerHTML = 'SUCCESS';20 document.getElementById('result').innerHTML = "SUCCESS - Didn't crash"; 21 21 } 22 22 </script> … … 25 25 <input id="first" type="text" onchange="document.getElementById('u').style.display='none'"><input id="u" type="text"> 26 26 <p>This tests that setting display to 'none' for an element that's about to get focus doesn't crash.</p> 27 <div >SUCCESS - Didn't crash</div>27 <div id="result">THE TEST DID NOT RUN</div> 28 28 </body> 29 29 </html> -
trunk/LayoutTests/fast/forms/input-text-click-inside-expected.checksum
r14936 r19397 1 aba36613297b546d1d1100c7c45ed4ef 1 6564425bebc5b7787fd842f379396474 -
trunk/LayoutTests/fast/forms/input-text-click-inside-expected.txt
r19343 r19397 1 CONSOLE MESSAGE: line 5: TypeError: Value undefined (result of expression eventSender.moveTo) is not object.2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 13 12 layer at (38,38) size 142x13 14 13 RenderBlock {DIV} at (3,3) size 142x13 14 caret: position 0 of child 0 {DIV} of child 0 {INPUT} of child 0 {DIV} of child 0 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/fast/forms/input-text-click-inside.html
r14172 r19397 3 3 <script> 4 4 if (window.eventSender) { 5 eventSender.mo veTo(100, 45);5 eventSender.mouseMoveTo(100, 45); 6 6 eventSender.mouseDown(); 7 7 eventSender.mouseUp(); -
trunk/LayoutTests/fast/forms/input-text-click-outside-expected.txt
r19343 r19397 1 CONSOLE MESSAGE: line 5: TypeError: Value undefined (result of expression eventSender.moveTo) is not object.2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 13 12 layer at (38,38) size 142x13 14 13 RenderBlock {DIV} at (3,3) size 142x13 14 caret: position 1 of child 0 {INPUT} of child 0 {DIV} of child 0 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/fast/forms/input-text-click-outside.html
r14172 r19397 3 3 <script> 4 4 if (window.eventSender) { 5 eventSender.mo veTo(225, 45);5 eventSender.mouseMoveTo(200, 45); 6 6 eventSender.mouseDown(); 7 7 eventSender.mouseUp(); -
trunk/LayoutTests/fast/js/array-foreach-expected.txt
r19343 r19397 1 CONSOLE MESSAGE: line 100: ReferenceError: Can't find variable: exception2 1 1.0 Single Argument Testing 3 2 The following tests forEach with one argument, the callback. It should print the contents of the array [2, 5, 9] alongside each index. … … 42 41 [0] is 2 43 42 [1] is 5 43 Exception thrown, execution halted! 44 44 45 45 5.0 Wrong Type for Callback Test This test sends in incorrect types for the callback parameter of forEach. An exception should be thrown in each case. There should be 6 type errors (and no crashes!): -
trunk/LayoutTests/fast/js/array-foreach.html
r11995 r19397 7 7 } 8 8 9 if (window.layoutTestController) layoutTestController.dumpAsText(); 9 if (window.layoutTestController) 10 layoutTestController.dumpAsText(); 10 11 </script> 11 12 </head> … … 75 76 function printEltAndChange(element, index, array) { 76 77 print("[" + index + "] is " + element); 77 array[array.length -1-index]= "changed";78 array[array.length - 1 - index] = "changed"; 78 79 } 79 80 … … 86 87 function printEltAndException(element, index, array) { 87 88 print("[" + index + "] is " + element); 88 if(index==1) throw exception(); 89 if (index == 1) 90 throw "Exception thrown, execution halted!"; 89 91 } 92 try { 93 [2, 5, 9].forEach(printEltAndException); 94 } catch (e) { 95 print(e); 96 } 97 </script> 90 98 91 [2, 5, 9].forEach(printEltAndException);92 </script>93 99 <br/> 94 100 5.0 Wrong Type for Callback Test … … 96 102 <script> 97 103 98 try { [2, 5, 9].forEach(5); } 99 catch (e) { print(e); } 104 try { 105 [2, 5, 9].forEach(5); 106 } catch (e) { 107 print(e); 108 } 100 109 101 try { [2, 5, 9].forEach("wrong"); } 102 catch (e) { print(e); } 110 try { 111 [2, 5, 9].forEach("wrong"); 112 } catch (e) { 113 print(e); 114 } 103 115 104 try { [2, 5, 9].forEach(new Object()); } 105 catch (e) { print(e); } 116 try { 117 [2, 5, 9].forEach(new Object()); 118 } catch (e) { 119 print(e); 120 } 106 121 107 try { [2, 5, 9].forEach(null); } 108 catch (e) { print(e); } 122 try { 123 [2, 5, 9].forEach(null); 124 } catch (e) { 125 print(e); 126 } 109 127 110 try { [2, 5, 9].forEach(undefined); } 111 catch (e) { print(e) } 128 try { 129 [2, 5, 9].forEach(undefined); 130 } catch (e) { 131 print(e) 132 } 112 133 113 try { [2, 5, 9].forEach(); } 114 catch (e) { print(e); } 134 try { 135 [2, 5, 9].forEach(); 136 } catch (e) { 137 print(e); 138 } 115 139 116 140 </script> -
trunk/LayoutTests/fast/js/array-some-expected.txt
r19343 r19397 1 CONSOLE MESSAGE: line 100: ReferenceError: Can't find variable: isBigEnoughAndException2 1 1.0 Single Argument Testing 3 2 The following tests every with one argument, the callback. It should print whether the arrays [2, 5, 8, 1, 4] and [12, 5, 8, 1, 44] contain any numbers >= to 10 (false and true, respectively). … … 34 33 35 34 4.0 Exception Test 36 This test uses a function that throws an exception, and thus halts the execution of some. There should thus be no output.35 This test uses a function that throws an exception, and thus halts the execution of some. There should be 2 exceptions thrown. 37 36 37 Exception thrown, execution halted! 38 Exception thrown, execution halted! 38 39 39 40 5.0 Wrong Type for Callback Test -
trunk/LayoutTests/fast/js/array-some.html
r11995 r19397 7 7 } 8 8 9 if (window.layoutTestController) layoutTestController.dumpAsText(); 9 if (window.layoutTestController) 10 layoutTestController.dumpAsText(); 10 11 </script> 11 12 </head> … … 72 73 <script> 73 74 function isBigEnoughAndChange(element, index, array) { 74 array[array.length -1-index]= 10;75 array[array.length - 1 - index] = 10; 75 76 return (element >= 10); 76 77 } … … 81 82 <br/> 82 83 4.0 Exception Test<br/> 83 This test uses a function that throws an exception, and thus halts the execution of some. There should thus be no output.<br/><br/>84 This test uses a function that throws an exception, and thus halts the execution of some. There should be 2 exceptions thrown.<br/><br/> 84 85 <script> 85 function isBigEnough (element, index, array) {86 throw exception();86 function isBigEnoughAndException(element, index, array) { 87 throw "Exception thrown, execution halted!"; 87 88 return (element >= 10); 88 89 } 89 90 90 print([2, 5, 8, 1, 4].some(isBigEnoughAndException)); 91 print([12, 5, 8, 1, 44].some(isBigEnoughAndException)); 91 try { 92 [2, 5, 8, 1, 4].some(isBigEnoughAndException); 93 } catch (e) { 94 print(e); 95 } 96 97 try { 98 [12, 5, 8, 1, 44].some(isBigEnoughAndException); 99 } catch (e) { 100 print(e); 101 } 92 102 93 103 </script> … … 97 107 <script> 98 108 99 try { [12, 5, 8, 1, 44].some(5) } 100 catch (e) { print(e); } 109 try { 110 [12, 5, 8, 1, 44].some(5) 111 } catch (e) { 112 print(e); 113 } 101 114 102 try { [12, 5, 8, 1, 44].some("wrong"); } 103 catch (e) { print(e); } 115 try { 116 [12, 5, 8, 1, 44].some("wrong"); 117 } catch (e) { 118 print(e); 119 } 104 120 105 try { [12, 5, 8, 1, 44].some(new Object()); } 106 catch (e) { print(e); } 121 try { 122 [12, 5, 8, 1, 44].some(new Object()); 123 } catch (e) { 124 print(e); 125 } 107 126 108 try { [12, 5, 8, 1, 44].some(null); } 109 catch (e) { print(e); } 127 try { 128 [12, 5, 8, 1, 44].some(null); 129 } catch (e) { 130 print(e); 131 } 110 132 111 try { [12, 5, 8, 1, 44].some(undefined); } 112 catch (e) { print(e) } 133 try { 134 [12, 5, 8, 1, 44].some(undefined); 135 } catch (e) { 136 print(e) 137 } 113 138 114 try { [12, 5, 8, 1, 44].some(); } 115 catch (e) { print(e); } 139 try { 140 [12, 5, 8, 1, 44].some(); 141 } catch (e) { 142 print(e); 143 } 116 144 117 145 </script> … … 121 149 <script> 122 150 function isBigEnough(element, index, array) { 123 print("Testing element " +element+"...");151 print("Testing element " + element + "..."); 124 152 return (element >= 10); 125 153 } -
trunk/LayoutTests/fast/table/click-near-anonymous-table-expected.checksum
r15425 r19397 1 5229184684e7a329c7988e1e7e10a9d0 1 7e58fe2709accf3efb12e524a46a1117 -
trunk/LayoutTests/fast/table/click-near-anonymous-table-expected.txt
r19343 r19397 1 CONSOLE MESSAGE: line 18: Value undefined (result of expression eventSender.timeForward) is not object.2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 41 40 RenderText {#text} at (0,0) size 176x18 42 41 text run at (0,0) width 176: "Click to the right of this text" 43 caret: position 9 of child 0 {#text} of child 7{DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document42 caret: position 40 of child 0 {#text} of child 3 {DIV} of child 7 {DIV} of child 1 {BODY} of child 0 {HTML} of document -
trunk/LayoutTests/fast/table/click-near-anonymous-table.html
r19149 r19397 16 16 eventSender.mouseDown(); 17 17 eventSender.mouseUp(); 18 eventSender. timeForward(500); // we're not multi-clicking18 eventSender.leapForward(1000); // we're not multi-clicking 19 19 } 20 20 }
Note: See TracChangeset
for help on using the changeset viewer.