Title: [110197] trunk/LayoutTests
- Revision
- 110197
- Author
- [email protected]
- Date
- 2012-03-08 13:23:38 -0800 (Thu, 08 Mar 2012)
Log Message
Layout test for window.devicePixelRatio
https://bugs.webkit.org/show_bug.cgi?id=80292
Patch by Konrad Piascik <[email protected]> on 2012-03-08
Reviewed by Rob Buis.
* fast/viewport/viewport-133-expected.txt: Added.
* fast/viewport/viewport-133.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (110196 => 110197)
--- trunk/LayoutTests/ChangeLog 2012-03-08 21:20:30 UTC (rev 110196)
+++ trunk/LayoutTests/ChangeLog 2012-03-08 21:23:38 UTC (rev 110197)
@@ -1,3 +1,13 @@
+2012-03-08 Konrad Piascik <[email protected]>
+
+ Layout test for window.devicePixelRatio
+ https://bugs.webkit.org/show_bug.cgi?id=80292
+
+ Reviewed by Rob Buis.
+
+ * fast/viewport/viewport-133-expected.txt: Added.
+ * fast/viewport/viewport-133.html: Added.
+
2012-03-08 Max Vujovic <[email protected]>
Add a method to window.internals to enable testing of inspector highlight rects
Added: trunk/LayoutTests/fast/viewport/viewport-133-expected.txt (0 => 110197)
--- trunk/LayoutTests/fast/viewport/viewport-133-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/viewport/viewport-133-expected.txt 2012-03-08 21:23:38 UTC (rev 110197)
@@ -0,0 +1,3 @@
+viewport size 480x534 scale 1.000000 with limits [1.000000, 5.000000] and userScalable -1.000000
+PASS window.devicePixelRatio is within 0.001 of 0.7083333134651184
+
Added: trunk/LayoutTests/fast/viewport/viewport-133.html (0 => 110197)
--- trunk/LayoutTests/fast/viewport/viewport-133.html (rev 0)
+++ trunk/LayoutTests/fast/viewport/viewport-133.html 2012-03-08 21:23:38 UTC (rev 110197)
@@ -0,0 +1,15 @@
+<head>
+ <title>Check that device dimensions are not adapted due to the higher DPI.</title>
+ <meta name="viewport" content="width=device-width, target-densitydpi=high-dpi">
+ <script src=""
+ <script>
+ function test() {
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.dumpConfigurationForViewport(240, 480, 564, 480, 534);
+ shouldBeCloseTo("window.devicePixelRatio", 0.7083333134651184, 0.001, false);
+ }
+ }
+ </script>
+</head>
+<body _onload_="test();">
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes