From f512d10ababa0b27b991a2512d15d712bd2b7e9d Mon Sep 17 00:00:00 2001 From: Liu Yun Date: Thu, 26 May 2016 11:03:24 +0800 Subject: [PATCH] [webapi] Add deviceorientation tests Impacted tests(approved): new 5, update 0, delete 0 Unit test platform: Crosswalk Project for Android 20.50.531.0 Unit test result summary: pass 5, fail 0, block 0 BUG=https://crosswalk-project.org/jira/browse/CTS-1742 --- ...entationabsolute_deviceframe_x-manual.html | 53 ++++++++++++++++ ...entationabsolute_deviceframe_y-manual.html | 53 ++++++++++++++++ ...entationabsolute_deviceframe_z-manual.html | 53 ++++++++++++++++ .../deviceorientationabsolute_event.html | 54 +++++++++++++++++ ...orientationabsolute_event_type-manual.html | 47 +++++++++++++++ .../tests.full.xml | 60 +++++++++++++++++++ .../tct-deviceorientation-w3c-tests/tests.xml | 25 ++++++++ 7 files changed, 345 insertions(+) create mode 100644 webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_x-manual.html create mode 100644 webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_y-manual.html create mode 100644 webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_z-manual.html create mode 100644 webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event.html create mode 100644 webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event_type-manual.html diff --git a/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_x-manual.html b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_x-manual.html new file mode 100644 index 000000000..2ab127983 --- /dev/null +++ b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_x-manual.html @@ -0,0 +1,53 @@ + + + + +Orientation Test: Rotate the device frame around its x axis + + + + + +

Rotate the device frame around its x axis.

+
+ + diff --git a/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_y-manual.html b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_y-manual.html new file mode 100644 index 000000000..b62ca1c46 --- /dev/null +++ b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_y-manual.html @@ -0,0 +1,53 @@ + + + + +Orientation Test: Rotate the device frame around its y axis + + + + + +

Rotate the device frame around its y axis.

+
+ + diff --git a/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_z-manual.html b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_z-manual.html new file mode 100644 index 000000000..2a12d138c --- /dev/null +++ b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_z-manual.html @@ -0,0 +1,53 @@ + + + + +Orientation Test: Rotate the device frame around its z axis + + + + + +

Rotate the device frame around its z axis.

+
+ + diff --git a/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event.html b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event.html new file mode 100644 index 000000000..d1d77f7e3 --- /dev/null +++ b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event.html @@ -0,0 +1,54 @@ + + + + +Orientation Test: deviceorientationabsolute attributes + + + + + +
+ + diff --git a/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event_type-manual.html b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event_type-manual.html new file mode 100644 index 000000000..b6ab744af --- /dev/null +++ b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event_type-manual.html @@ -0,0 +1,47 @@ + + + + +Orientation Test: Check The type of this event handler must be 'deviceorientationabsolute' + + + + + +
+ + diff --git a/webapi/tct-deviceorientation-w3c-tests/tests.full.xml b/webapi/tct-deviceorientation-w3c-tests/tests.full.xml index 786250531..c75e83f80 100644 --- a/webapi/tct-deviceorientation-w3c-tests/tests.full.xml +++ b/webapi/tct-deviceorientation-w3c-tests/tests.full.xml @@ -102,6 +102,66 @@ + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event.html + + + + + http://w3c.github.io/deviceorientation/spec-source-orientation.html#deviceorientationabsolute + + + + + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event_type-manual.html + + + + + http://w3c.github.io/deviceorientation/spec-source-orientation.html#deviceorientationabsolute + + + + + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_z-manual.html + + + + + http://w3c.github.io/deviceorientation/spec-source-orientation.html#deviceorientationabsolute + + + + + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_x-manual.html + + + + + http://w3c.github.io/deviceorientation/spec-source-orientation.html#deviceorientationabsolute + + + + + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_y-manual.html + + + + + http://w3c.github.io/deviceorientation/spec-source-orientation.html#deviceorientationabsolute + + + + diff --git a/webapi/tct-deviceorientation-w3c-tests/tests.xml b/webapi/tct-deviceorientation-w3c-tests/tests.xml index 365766309..a5a631700 100644 --- a/webapi/tct-deviceorientation-w3c-tests/tests.xml +++ b/webapi/tct-deviceorientation-w3c-tests/tests.xml @@ -46,6 +46,31 @@ /opt/tct-deviceorientation-w3c-tests/deviceorientation/DeviceOrientationEvent_attributes_readonly.html + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event.html + + + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_event_type-manual.html + + + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_z-manual.html + + + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_x-manual.html + + + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_deviceframe_y-manual.html + +