Title: [122464] trunk/LayoutTests
- Revision
- 122464
- Author
- aba...@webkit.org
- Date
- 2012-07-12 08:52:30 -0700 (Thu, 12 Jul 2012)
Log Message
Parse the viewport meta tag like iOS
https://bugs.webkit.org/show_bug.cgi?id=72722
Reviewed by Alexey Proskuryakov.
Our parsing appears to match iOS already. This patch simply adds tests
that show that we agree on these cases.
* fast/viewport/viewport-133-expected.txt: Added.
* fast/viewport/viewport-133.html: Added.
* fast/viewport/viewport-134-expected.txt: Added.
* fast/viewport/viewport-134.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (122463 => 122464)
--- trunk/LayoutTests/ChangeLog 2012-07-12 15:38:14 UTC (rev 122463)
+++ trunk/LayoutTests/ChangeLog 2012-07-12 15:52:30 UTC (rev 122464)
@@ -1,3 +1,18 @@
+2012-07-12 Adam Barth <aba...@webkit.org>
+
+ Parse the viewport meta tag like iOS
+ https://bugs.webkit.org/show_bug.cgi?id=72722
+
+ Reviewed by Alexey Proskuryakov.
+
+ Our parsing appears to match iOS already. This patch simply adds tests
+ that show that we agree on these cases.
+
+ * fast/viewport/viewport-133-expected.txt: Added.
+ * fast/viewport/viewport-133.html: Added.
+ * fast/viewport/viewport-134-expected.txt: Added.
+ * fast/viewport/viewport-134.html: Added.
+
2012-07-12 Joshua Bell <jsb...@chromium.org>
IndexedDB: ASSERT hit calling open from callback in Worker
Added: trunk/LayoutTests/fast/viewport/viewport-133-expected.txt (0 => 122464)
--- trunk/LayoutTests/fast/viewport/viewport-133-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/viewport/viewport-133-expected.txt 2012-07-12 15:52:30 UTC (rev 122464)
@@ -0,0 +1,3 @@
+CONSOLE MESSAGE: line 3: Viewport argument value "10;" for key "minimum-scale" was truncated to its numeric prefix.
+ALERT: viewport size 980x1078 scale 10 with limits [10, 10] and userScalable true
+
Added: trunk/LayoutTests/fast/viewport/viewport-133.html (0 => 122464)
--- trunk/LayoutTests/fast/viewport/viewport-133.html (rev 0)
+++ trunk/LayoutTests/fast/viewport/viewport-133.html 2012-07-12 15:52:30 UTC (rev 122464)
@@ -0,0 +1,13 @@
+<head>
+ <title>Viewport META with semi-colons "minimum-scale=10; maximum-scale=0.1".</title>
+ <meta name="viewport" content="minimum-scale=10; maximum-scale=0.1">
+ <script>
+ function test() {
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ }
+ }
+ </script>
+</head>
+<body _onload_="test();">
Added: trunk/LayoutTests/fast/viewport/viewport-134-expected.txt (0 => 122464)
--- trunk/LayoutTests/fast/viewport/viewport-134-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/viewport/viewport-134-expected.txt 2012-07-12 15:52:30 UTC (rev 122464)
@@ -0,0 +1,3 @@
+CONSOLE MESSAGE: line 3: Viewport argument value "device-width;" for key "width" not recognized. Content ignored.
+ALERT: viewport size 160x176 scale 2 with limits [2, 5] and userScalable true
+
Added: trunk/LayoutTests/fast/viewport/viewport-134.html (0 => 122464)
--- trunk/LayoutTests/fast/viewport/viewport-134.html (rev 0)
+++ trunk/LayoutTests/fast/viewport/viewport-134.html 2012-07-12 15:52:30 UTC (rev 122464)
@@ -0,0 +1,13 @@
+<head>
+ <title>Viewport META with semi-colons "width=device-width; initial-scale=2".</title>
+ <meta name="viewport" content="width=device-width; initial-scale=2">
+ <script>
+ function test() {
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ }
+ }
+ </script>
+</head>
+<body _onload_="test();">
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes