Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: LayoutTests/fast/dom/geometry-interfaces-dom-rect-expected.txt

Issue 403383002: Implement DOMRect of geometry interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/geometry-interfaces-dom-rect.html ('k') | Source/core/core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/geometry-interfaces-dom-rect-expected.txt
diff --git a/LayoutTests/fast/dom/geometry-interfaces-dom-rect-expected.txt b/LayoutTests/fast/dom/geometry-interfaces-dom-rect-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..6c8e8acb8f65039d38a56bd6feabca4dd6da5035
--- /dev/null
+++ b/LayoutTests/fast/dom/geometry-interfaces-dom-rect-expected.txt
@@ -0,0 +1,134 @@
+# DOMRect()
+PASS rect.x is 0
+PASS rect.y is 0
+PASS rect.width is 0
+PASS rect.height is 0
+PASS rect.top is 0
+PASS rect.right is 0
+PASS rect.bottom is 0
+PASS rect.left is 0
+PASS rect.top is rect.y
+PASS rect.right is rect.x + rect.width
+PASS rect.bottom is rect.y + rect.height
+PASS rect.left is rect.x
+
+# DOMRect(10)
+PASS rect.x is 10
+PASS rect.y is 0
+PASS rect.width is 0
+PASS rect.height is 0
+PASS rect.top is 0
+PASS rect.right is 10
+PASS rect.bottom is 0
+PASS rect.left is 10
+PASS rect.top is rect.y
+PASS rect.right is rect.x + rect.width
+PASS rect.bottom is rect.y + rect.height
+PASS rect.left is rect.x
+
+# DOMRect(10, 20)
+PASS rect.x is 10
+PASS rect.y is 20
+PASS rect.width is 0
+PASS rect.height is 0
+PASS rect.top is 20
+PASS rect.right is 10
+PASS rect.bottom is 20
+PASS rect.left is 10
+PASS rect.top is rect.y
+PASS rect.right is rect.x + rect.width
+PASS rect.bottom is rect.y + rect.height
+PASS rect.left is rect.x
+
+# DOMRect(10, 20, 80)
+PASS rect.x is 10
+PASS rect.y is 20
+PASS rect.width is 80
+PASS rect.height is 0
+PASS rect.top is 20
+PASS rect.right is 90
+PASS rect.bottom is 20
+PASS rect.left is 10
+PASS rect.top is rect.y
+PASS rect.right is rect.x + rect.width
+PASS rect.bottom is rect.y + rect.height
+PASS rect.left is rect.x
+
+# DOMRect(10, 20, 80, 50)
+PASS rect.x is 10
+PASS rect.y is 20
+PASS rect.width is 80
+PASS rect.height is 50
+PASS rect.top is 20
+PASS rect.right is 90
+PASS rect.bottom is 70
+PASS rect.left is 10
+PASS rect.top is rect.y
+PASS rect.right is rect.x + rect.width
+PASS rect.bottom is rect.y + rect.height
+PASS rect.left is rect.x
+
+# DOMRect setter
+PASS rect.x is 30
+PASS rect.left is 30
+PASS rect.width is 80
+PASS rect.right is 110
+PASS rect.y is -10
+PASS rect.top is -10
+PASS rect.height is 50
+PASS rect.bottom is 40
+PASS rect.x is 30
+PASS rect.left is 30
+PASS rect.width is 20
+PASS rect.right is 50
+PASS rect.y is -10
+PASS rect.top is -10
+PASS rect.height is 40
+PASS rect.bottom is 30
+
+# DOMRect(10, 20, -80, -50) negative width and height
+PASS rect.x is 10
+PASS rect.y is 20
+PASS rect.width is -80
+PASS rect.height is -50
+PASS rect.top is -30
+PASS rect.right is 10
+PASS rect.bottom is 20
+PASS rect.left is -70
+PASS rect.top is rect.y + rect.height
+PASS rect.right is rect.x
+PASS rect.bottom is rect.y
+PASS rect.left is rect.x + rect.width
+
+# DOMRectReadOnly(10, 20, 80, 50)
+PASS rect.x is 10
+PASS rect.y is 20
+PASS rect.width is 80
+PASS rect.height is 50
+PASS rect.top is 20
+PASS rect.right is 90
+PASS rect.bottom is 70
+PASS rect.left is 10
+PASS rect.top is rect.y
+PASS rect.right is rect.x + rect.width
+PASS rect.bottom is rect.y + rect.height
+PASS rect.left is rect.x
+
+# DOMRectReadOnly readonly test
+PASS rect.x is 10
+PASS rect.y is 20
+PASS rect.width is 80
+PASS rect.height is 50
+PASS rect.top is 20
+PASS rect.right is 90
+PASS rect.bottom is 70
+PASS rect.left is 10
+PASS rect.top is rect.y
+PASS rect.right is rect.x + rect.width
+PASS rect.bottom is rect.y + rect.height
+PASS rect.left is rect.x
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/dom/geometry-interfaces-dom-rect.html ('k') | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698