Changeset 70295 in webkit
- Timestamp:
- Oct 22, 2010 1:21:17 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 added
- 9 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r70293 r70295 1 2010-10-22 MORITA Hajime <morrita@google.com> 2 3 Reviewed by Kent Tamura. 4 5 https://bugs.webkit.org/show_bug.cgi?id=47645 6 Conversion to text test: editing/spelling/spellcheck-attribute.html 7 8 Replaced a pixel test with test-based test using 9 LayoutTestController.hasSpellingMarker(). 10 11 * editing/spelling/spellcheck-attribute-expected.txt: Added. 12 * editing/spelling/spellcheck-attribute.html: 13 * platform/chromium-win/editing/spelling/spellcheck-attribute-expected.checksum: Removed. 14 * platform/chromium-win/editing/spelling/spellcheck-attribute-expected.png: Removed. 15 * platform/chromium-win/editing/spelling/spellcheck-attribute-expected.txt: Removed. 16 * platform/chromium/test_expectations.txt: 17 * platform/gtk/editing/spelling/spellcheck-attribute-expected.txt: Removed. 18 * platform/mac-leopard/editing/spelling/spellcheck-attribute-expected.checksum: Removed. 19 * platform/mac-leopard/editing/spelling/spellcheck-attribute-expected.png: Removed. 20 * platform/mac/editing/spelling/spellcheck-attribute-expected.checksum: Removed. 21 * platform/mac/editing/spelling/spellcheck-attribute-expected.png: Removed. 22 * platform/mac/editing/spelling/spellcheck-attribute-expected.txt: Removed. 23 1 24 2010-10-21 James Simonsen <simonjam@chromium.org> 2 25 -
trunk/LayoutTests/editing/spelling/spellcheck-attribute.html
r43168 r70295 6 6 <body> 7 7 <p>This tests if the "spellcheck" attribute is implemented as written in its specification. If this test succeeds, you can see six forms filled with an invalid word 'zz '. Nevertheless, the 'zz ' only in the line 1.1, 1.2, and 2.2 are marked as misspelled.</p> 8 <div id="testRoot"> 8 9 <div spellcheck="true"> 9 10 <label>1.1.</label><input id="test1_1" type="text"></input><br/> … … 16 17 <label>2.3.</label><input id="test2_3" type="text" spellcheck="false"></input><br/> 17 18 </div> 19 </div> 20 <pre id="console"></pre> 18 21 <script> 19 function typeInvalidWord(id) { 22 function log(msg) { 23 document.getElementById("console").innerHTML += (msg + "\n"); 24 } 25 26 function testTypingInvalidWord(id, shouldBeMarked) { 20 27 document.getElementById(id).focus(); 21 28 document.execCommand("InsertText", false, 'z'); 22 29 document.execCommand("InsertText", false, 'z'); 23 30 document.execCommand("InsertText", false, ' '); 31 if (shouldBeMarked == layoutTestController.hasSpellingMarker(0, 2)) 32 log("PASS:" + id); 33 else 34 log("FAIL:" + id); 24 35 } 25 36 26 typeInvalidWord('test1_1'); 27 typeInvalidWord('test1_2'); 28 typeInvalidWord('test1_3'); 29 typeInvalidWord('test2_1'); 30 typeInvalidWord('test2_2'); 31 typeInvalidWord('test2_3'); 37 testTypingInvalidWord('test1_1', true); 38 testTypingInvalidWord('test1_2', true); 39 testTypingInvalidWord('test1_3', false); 40 testTypingInvalidWord('test2_1', false); 41 testTypingInvalidWord('test2_2', true); 42 testTypingInvalidWord('test2_3', false); 43 44 if (window.layoutTestController) { 45 layoutTestController.dumpAsText(); 46 // Cleaning up for expeation text if running on DRT. 47 document.getElementById("testRoot").style.display = "none"; 48 } 32 49 </script> 33 50 </body> -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r70284 r70295 1877 1877 // We don't draw the spelling markers at all in test shell. 1878 1878 BUG11577 WIN LINUX : editing/spelling/inline_spelling_markers.html = FAIL 1879 BUG11577 LINUX : editing/spelling/spellcheck-attribute.html = FAIL1879 BUG11577 WIN LINUX : editing/spelling/spellcheck-attribute.html = FAIL 1880 1880 BUG11577 WIN LINUX : editing/spelling/spelling-linebreak.html = FAIL 1881 1881
Note: See TracChangeset
for help on using the changeset viewer.