Reviewed by Eric Seidel.
Rewrite the test fast/parser/comment-in-textarea to use dumpAsText
so that the expected results can be independent of platform differences.
https://bugs.webkit.org/show_bug.cgi?id=31580
* fast/parser/comment-in-textarea-expected.txt: Added.
* fast/parser/comment-in-textarea.html:
* fast/parser/script-tests/comment-in-textarea.js: Added.
* platform/mac/fast/parser/comment-in-textarea-expected.checksum: Removed.
* platform/mac/fast/parser/comment-in-textarea-expected.png: Removed.
* platform/mac/fast/parser/comment-in-textarea-expected.txt: Removed.
* platform/win/fast/parser/comment-in-textarea-expected.txt: Removed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51427
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2009-11-26 Kinuko Yasuda <kinuko@chromium.com>
+
+ Reviewed by Eric Seidel.
+
+ Rewrite the test fast/parser/comment-in-textarea to use dumpAsText
+ so that the expected results can be independent of platform differences.
+ https://bugs.webkit.org/show_bug.cgi?id=31580
+
+ * fast/parser/comment-in-textarea-expected.txt: Added.
+ * fast/parser/comment-in-textarea.html:
+ * fast/parser/script-tests/comment-in-textarea.js: Added.
+ * platform/mac/fast/parser/comment-in-textarea-expected.checksum: Removed.
+ * platform/mac/fast/parser/comment-in-textarea-expected.png: Removed.
+ * platform/mac/fast/parser/comment-in-textarea-expected.txt: Removed.
+ * platform/win/fast/parser/comment-in-textarea-expected.txt: Removed.
+
2009-11-26 Daniel Bates <dbates@webkit.org>
Reviewed by Pavel Feldman.
--- /dev/null
+Test that the HTML parser correctly parses the comment-like string in the textarea.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS textAreas.length is 1
+PASS textAreas[0].innerHTML is "<!-- </textarea> --> This should be part of the textarea"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
+<head>
+<link rel="stylesheet" href="../js/resources/js-test-style.css">
+<script src="../js/resources/js-test-pre.js"></script>
+</head>
<body>
-<textarea>
-<!-- </textarea> -->
-This should be part of the textarea
-</textarea>
+<p id="description"></p>
+<div id="console"></div>
+<script src="script-tests/comment-in-textarea.js"></script>
+<script src="../js/resources/js-test-post.js"></script>
</body>
</html>
--- /dev/null
+description("Test that the HTML parser correctly parses the comment-like string in the textarea.");
+
+var element = document.createElement("div");
+element.innerHTML = "<textarea><!-- </textarea> --> This should be part of the textarea</textarea>";
+document.body.appendChild(element);
+
+var textAreas = document.getElementsByTagName("textarea");
+shouldBe("textAreas.length", "1");
+shouldBeEqualToString("textAreas[0].innerHTML", "<!-- </textarea> --> This should be part of the textarea");
+
+var successfullyParsed = true;
+++ /dev/null
-92f3bd5cd9dd9391b6011237f8bb858a
\ No newline at end of file
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderText {#text} at (0,0) size 0x0
- RenderText {#text} at (0,0) size 0x0
- RenderText {#text} at (0,0) size 0x0
-layer at (10,10) size 129x32 clip at (11,11) size 112x30 scrollHeight 69
- RenderTextControl {TEXTAREA} at (2,2) size 129x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
- RenderBlock {DIV} at (3,3) size 108x65
- RenderText {#text} at (0,0) size 108x52
- text run at (0,0) width 108: "<!-- </textarea> -"
- text run at (0,13) width 16: "->"
- text run at (16,13) width 0: " "
- text run at (0,26) width 105: "This should be part"
- text run at (105,26) width 3: " "
- text run at (0,39) width 79: "of the textarea"
- text run at (79,39) width 0: " "
- RenderBR {BR} at (0,52) size 0x13
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderText {#text} at (0,0) size 0x0
- RenderText {#text} at (0,0) size 0x0
- RenderText {#text} at (0,0) size 0x0
-layer at (10,10) size 161x32 clip at (11,11) size 144x30 scrollHeight 56
- RenderTextControl {TEXTAREA} at (2,2) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
- RenderBlock {DIV} at (3,3) size 140x52
- RenderText {#text} at (0,0) size 140x39
- text run at (0,0) width 124: "<!-- </textarea> -->"
- text run at (124,0) width 0: " "
- text run at (0,13) width 140: "This should be part of the"
- text run at (140,13) width 0: " "
- text run at (0,26) width 44: "textarea"
- text run at (44,26) width 0: " "
- RenderBR {BR} at (0,39) size 0x13