From 638a50cad32757a0927925db3bbb7dbc6e2b3686 Mon Sep 17 00:00:00 2001 From: "Tan.Shiyou" Date: Sun, 9 Jun 2013 14:49:03 +0800 Subject: [PATCH] Repaired viewport style on behavior Signed-off-by: Tan.Shiyou --- tests.xml | 26 +++++++++++------------ tests/Viewport/index.html | 23 ++++++++++++-------- tests/Viewport/test/device.html | 22 +++++++++++++++---- tests/Viewport/test/scale.html | 39 ++++++++++++++++++++++------------ tests/Viewport/test/user-scalable.html | 28 +++++++++++++++++++++--- 5 files changed, 95 insertions(+), 43 deletions(-) diff --git a/tests.xml b/tests.xml index 1a57e79..6a3b0bc 100644 --- a/tests.xml +++ b/tests.xml @@ -203,6 +203,19 @@ + + + + + + + 0 + 0 + + + + + @@ -486,18 +499,5 @@ - - - - - - - 0 - 0 - - - - - diff --git a/tests/Viewport/index.html b/tests/Viewport/index.html index bf8dfda..c989ea5 100644 --- a/tests/Viewport/index.html +++ b/tests/Viewport/index.html @@ -44,12 +44,12 @@ Authors:
-

device-height|device-width -

Test the device-height and device-width values -

user-scalable-no -

Test the user-scalable attribute, if it sets no, user unable to scale the page -

maximum-scale|minimum-scale -

Test the maximum-scale and minimum-scale attributes +

1. Get the values of device-height and device-width +

device-height | device-width +

2. Test enable scale and disable scale +

enable scale | disable scale +

3. Test the maximum-scale and minimum-scale attributes +

maximum-scale | minimum-scale

@@ -57,9 +57,14 @@ Authors: diff --git a/tests/Viewport/test/device.html b/tests/Viewport/test/device.html index f306626..714a631 100644 --- a/tests/Viewport/test/device.html +++ b/tests/Viewport/test/device.html @@ -40,17 +40,31 @@ Authors: margin: 0px; background-color: red; } + p { + margin: 0px; + } + button { + background-color: black; + border: none; + border-radius: 10px; + color: white; + height: 40px; + } diff --git a/tests/Viewport/test/scale.html b/tests/Viewport/test/scale.html index dd75cc6..6db1b57 100644 --- a/tests/Viewport/test/scale.html +++ b/tests/Viewport/test/scale.html @@ -32,7 +32,7 @@ Authors: - + Viewport - - - - - - - -
-

Test passes if there is only green in screen when you zoom in to maximum -

Click to back

-

Click to back

-

Click to back

-

Click to back

+ diff --git a/tests/Viewport/test/user-scalable.html b/tests/Viewport/test/user-scalable.html index 12f0ec7..f3b8239 100644 --- a/tests/Viewport/test/user-scalable.html +++ b/tests/Viewport/test/user-scalable.html @@ -45,15 +45,37 @@ Authors: width: 500px; height: 500px; } - .p { + p { margin: 0px; } + button { + background-color: black; + border: none; + border-radius: 10px; + color: white; + height: 40px; + } +
-

Test passes if there is no red and user unable to zoom in or out -

Click to back +

EnableScale: you can scale the screen


+

DisableScale: you can not scale the screen


+

+ + + +

-- 2.7.4