Add layout test for link bug.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2006 21:26:15 +0000 (21:26 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2006 21:26:15 +0000 (21:26 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15835 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/fast/dynamic/link-href-change-expected.checksum [new file with mode: 0644]
LayoutTests/fast/dynamic/link-href-change-expected.png [new file with mode: 0644]
LayoutTests/fast/dynamic/link-href-change-expected.txt [new file with mode: 0644]
LayoutTests/fast/dynamic/link-href-change.html [new file with mode: 0644]

diff --git a/LayoutTests/fast/dynamic/link-href-change-expected.checksum b/LayoutTests/fast/dynamic/link-href-change-expected.checksum
new file mode 100644 (file)
index 0000000..526200d
--- /dev/null
@@ -0,0 +1 @@
+76c1a34b7ece2da59fe95422a060c74f
\ No newline at end of file
diff --git a/LayoutTests/fast/dynamic/link-href-change-expected.png b/LayoutTests/fast/dynamic/link-href-change-expected.png
new file mode 100644 (file)
index 0000000..a29328c
Binary files /dev/null and b/LayoutTests/fast/dynamic/link-href-change-expected.png differ
diff --git a/LayoutTests/fast/dynamic/link-href-change-expected.txt b/LayoutTests/fast/dynamic/link-href-change-expected.txt
new file mode 100644 (file)
index 0000000..700e0a1
--- /dev/null
@@ -0,0 +1,11 @@
+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 (0,20) size 800x560
+      RenderInline {A} at (0,0) size 366x48 [color=#008000] [border: (10px solid #000000)]
+        RenderText {#text} at (15,0) size 336x18
+          text run at (15,0) width 336: "This should have a 10px solid black border around it."
+      RenderText {#text} at (0,0) size 0x0
+      RenderText {#text} at (0,0) size 0x0
+      RenderText {#text} at (0,0) size 0x0
diff --git a/LayoutTests/fast/dynamic/link-href-change.html b/LayoutTests/fast/dynamic/link-href-change.html
new file mode 100644 (file)
index 0000000..0cc083d
--- /dev/null
@@ -0,0 +1,23 @@
+<html>
+<head>
+<style>
+:link, :visited
+{
+  border:10px solid black;
+  color: green;
+  padding:5px;
+  text-decoration: none
+}
+
+body
+{
+  margin:20px 0
+}
+</style>
+</head>
+<a id="link">This should have a 10px solid black border around it.</a>
+<script>
+document.body.offsetLeft
+document.getElementById('link').href = '#top';
+</script>
+</html>