Adding test cases for:
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Jan 2006 20:41:47 +0000 (20:41 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Jan 2006 20:41:47 +0000 (20:41 +0000)
        <rdar://problem/4423922> TOT REGRESSION (r12358): first iframe in pair fails to copy

        * editing/pasteboard/paste-empty-startcontainer-expected.png: Added.
        * editing/pasteboard/paste-empty-startcontainer-expected.checksum: Added.
        * editing/pasteboard/paste-empty-startcontainer-expected.txt: Added.
        * editing/pasteboard/paste-empty-startcontainer.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12503 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/paste-empty-startcontainer-expected.checksum [new file with mode: 0644]
LayoutTests/editing/pasteboard/paste-empty-startcontainer-expected.png [new file with mode: 0644]
LayoutTests/editing/pasteboard/paste-empty-startcontainer-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/paste-empty-startcontainer.html [new file with mode: 0644]

index d6c2b53360e29608c059fe86e31f7272126444ea..5f4a896a6080a07412f8019246922e51c5dec8ca 100644 (file)
@@ -1,3 +1,13 @@
+2006-01-31  David Harrison  <harrison@apple.com>
+
+        Adding test cases for:
+        <rdar://problem/4423922> TOT REGRESSION (r12358): first iframe in pair fails to copy
+        
+        * editing/pasteboard/paste-empty-startcontainer-expected.png: Added.
+        * editing/pasteboard/paste-empty-startcontainer-expected.checksum: Added.
+        * editing/pasteboard/paste-empty-startcontainer-expected.txt: Added.
+        * editing/pasteboard/paste-empty-startcontainer.html: Added.
+
 2006-01-31  Mitz Pettel  <opendarwin.org@mitzpettel.com>
 
         Reviewed by Adele.
diff --git a/LayoutTests/editing/pasteboard/paste-empty-startcontainer-expected.checksum b/LayoutTests/editing/pasteboard/paste-empty-startcontainer-expected.checksum
new file mode 100644 (file)
index 0000000..f29e4b4
--- /dev/null
@@ -0,0 +1 @@
+738d6aa2c8692c54de1d50d159e8a4aa
\ No newline at end of file
diff --git a/LayoutTests/editing/pasteboard/paste-empty-startcontainer-expected.png b/LayoutTests/editing/pasteboard/paste-empty-startcontainer-expected.png
new file mode 100644 (file)
index 0000000..fe5dc29
Binary files /dev/null and b/LayoutTests/editing/pasteboard/paste-empty-startcontainer-expected.png differ
diff --git a/LayoutTests/editing/pasteboard/paste-empty-startcontainer-expected.txt b/LayoutTests/editing/pasteboard/paste-empty-startcontainer-expected.txt
new file mode 100644 (file)
index 0000000..e9c7baa
--- /dev/null
@@ -0,0 +1,63 @@
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 4 of DIV > DIV > BODY > HTML > #document to 4 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of DIV > DIV > BODY > HTML > #document to 4 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of DIV > DIV > BODY > HTML > #document to 7 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderCanvas 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
+      RenderBlock {DIV} at (0,0) size 784x72
+        RenderBlock {DIV} at (0,0) size 784x36
+          RenderText {TEXT} at (0,0) size 41x18
+            text run at (0,0) width 41: "Tests: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {TEXT} at (0,18) size 105x18
+            text run at (0,18) width 105: "Fix for this bug: "
+          RenderInline {A} at (0,0) size 167x18 [color=#0000EE]
+            RenderText {TEXT} at (105,18) size 167x18
+              text run at (105,18) width 167: "<rdar://problem/4045511>"
+          RenderText {TEXT} at (272,18) size 421x18
+            text run at (272,18) width 421: " TOT REGRESSION (r12358): second iframe in pair fails to copy"
+        RenderBlock {DIV} at (0,36) size 784x36
+          RenderText {TEXT} at (0,0) size 117x18
+            text run at (0,0) width 117: "Expected Results: "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {TEXT} at (0,18) size 192x18
+            text run at (0,18) width 192: "Should see four blank iframes "
+          RenderBR {BR} at (0,0) size 0x0
+      RenderBlock {DIV} at (0,72) size 784x348 [border: (2px solid #FF0000)]
+        RenderBlock {DIV} at (14,14) size 756x320
+          RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px solid #0000FF)]
+            layer at (0,0) size 300x150
+              RenderCanvas at (0,0) size 300x150
+            layer at (0,0) size 300x8
+              RenderBlock {HTML} at (0,0) size 300x8
+                RenderBody {BODY} at (8,8) size 284x0
+          RenderText {TEXT} at (304,132) size 6x28
+            text run at (304,132) width 6: " "
+          RenderPartObject {IFRAME} at (310,0) size 304x154 [border: (2px solid #008000)]
+            layer at (0,0) size 300x150
+              RenderCanvas at (0,0) size 300x150
+            layer at (0,0) size 300x8
+              RenderBlock {HTML} at (0,0) size 300x8
+                RenderBody {BODY} at (8,8) size 284x0
+          RenderPartObject {IFRAME} at (0,160) size 304x154 [border: (2px solid #0000FF)]
+            layer at (0,0) size 300x150
+              RenderCanvas at (0,0) size 300x150
+            layer at (0,0) size 300x8
+              RenderBlock {HTML} at (0,0) size 300x8
+                RenderBody {BODY} at (8,8) size 284x0
+          RenderText {TEXT} at (304,292) size 6x28
+            text run at (304,292) width 6: " "
+          RenderPartObject {IFRAME} at (310,160) size 304x154 [border: (2px solid #008000)]
+            layer at (0,0) size 300x150
+              RenderCanvas at (0,0) size 300x150
+            layer at (0,0) size 300x8
+              RenderBlock {HTML} at (0,0) size 300x8
+                RenderBody {BODY} at (8,8) size 284x0
+          RenderText {TEXT} at (0,0) size 0x0
+caret: position 1 of child 6 {IFRAME} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
diff --git a/LayoutTests/editing/pasteboard/paste-empty-startcontainer.html b/LayoutTests/editing/pasteboard/paste-empty-startcontainer.html
new file mode 100644 (file)
index 0000000..ee904f0
--- /dev/null
@@ -0,0 +1,55 @@
+<html> 
+<head>
+
+<style>
+.editing { 
+    border: 2px solid red; 
+    padding: 12px; 
+    font-size: 24px; 
+}
+</style>
+<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
+
+<script>
+
+function editingTest() {
+   extendSelectionForwardByLineCommand();
+   copyCommand();
+   moveSelectionForwardByLineCommand();
+   pasteCommand();
+}
+
+</script>
+
+<title>Editing Test</title> 
+</head> 
+<body>
+
+<div class="explanation">
+<div class="scenario">
+Tests: 
+<br>
+Fix for this bug: 
+<a href="rdar://problem/4423922">&lt;rdar://problem/4045511&gt;</a> TOT REGRESSION (r12358): second iframe in pair fails to copy
+</div>
+<div class="expected-results">
+Expected Results:
+<br>
+Should see four blank iframes
+<br>
+</div>
+</div>
+
+<div contenteditable id="root" class="editing">
+<div id="test">
+<iframe style="border:solid blue 2px"></iframe>
+<iframe style="border:solid green 2px";"></iframe>
+</DIV>
+</div>
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>