summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/tokenizer/write-partial-entity.html
diff options
context:
space:
mode:
authorweinig <weinig@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2007-03-30 02:36:16 +0000
committerweinig <weinig@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2007-03-30 02:36:16 +0000
commitd5e852524fad158b028c0df02df7bf54851a065b (patch)
treedb6d13511ac1a876117401a9b602b0df04c71dc0 /third_party/WebKit/LayoutTests/fast/tokenizer/write-partial-entity.html
parent4ede4c51662f715dac5e9f6216160b0e8bf40831 (diff)
downloadchromium_src-d5e852524fad158b028c0df02df7bf54851a065b.zip
chromium_src-d5e852524fad158b028c0df02df7bf54851a065b.tar.gz
chromium_src-d5e852524fad158b028c0df02df7bf54851a065b.tar.bz2
LayoutTests:
Reviewed by Darin. - test for http://bugs.webkit.org/show_bug.cgi?id=13166 REGRESSION (2005-10-16 - 2005-10-19): Ampersands showing up in the last column of the Gmail contacts table * fast/tokenizer/write-partial-entity-expected.txt: Added. * fast/tokenizer/write-partial-entity.html: Added. WebCore: Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=13166 REGRESSION (2005-10-16 - 2005-10-19): Ampersands showing up in the last column of the Gmail contacts table Test: fast/tokenizer/write-partial-entity.html * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::parseTag): Reordered to avoid resetting the buffer position after script execution which can write to the buffer. git-svn-id: svn://svn.chromium.org/blink/trunk@20607 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/tokenizer/write-partial-entity.html')
-rw-r--r--third_party/WebKit/LayoutTests/fast/tokenizer/write-partial-entity.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/tokenizer/write-partial-entity.html b/third_party/WebKit/LayoutTests/fast/tokenizer/write-partial-entity.html
new file mode 100644
index 0000000..9ccd3b4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/tokenizer/write-partial-entity.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+ <title></title>
+ <script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+ </script>
+</head>
+<body>
+ <p>
+ Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=13166">http://bugs.webkit.org/show_bug.cgi?id=13166</a>
+ REGRESSION (2005-10-16 - 2005-10-19): Ampersands showing up in the last column of the Gmail contacts table</i>.
+ </p>
+ <p>
+ The following lines should all say &ldquo;1 &lt; 2&rdquo;. They should not contain ampersands.
+ </p>
+ 1 <script>document.write("&lt")</script>; 2<br>
+ 1 <script>document.write("&l")</script>t; 2<br>
+ 1 <script>document.write("&")</script>lt; 2<br>
+ 1 <script>document.write("&")</script>#x3c; 2<br>
+ 1 <script>document.write("&#")</script>x3c; 2<br>
+ 1 <script>document.write("&#x")</script>3c; 2<br>
+ 1 <script>document.write("&#x3")</script>c; 2<br>
+ 1 <script>document.write("&#x3c")</script>; 2<br>
+ 1 <script>document.write("&#x3c")</script> 2<br>
+ 1 <script>document.write("&")</script>#x3c; 2<br>
+ 1 <script>document.write("&")</script>#60; 2<br>
+ 1 <script>document.write("&#")</script>60; 2<br>
+ 1 <script>document.write("&#6")</script>0; 2<br>
+ 1 <script>document.write("&#60")</script>; 2<br>
+ 1 <script>document.write("&#60")</script> 2<br>
+</body>
+</html>