From 6ddb12d2244a397df8d3056294ed5f760fea3ce3 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 6, update 0, delete 0 Unit test platform: Crosswalk Project for Android 20.50.531.0 Unit test result summary: pass 6, fail 0, block 0 BUG=https://crosswalk-project.org/jira/browse/CTS-1742 --- ...ceorientationabsolute_absolute-manual.html | 51 +++++++++++++ ...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 | 72 +++++++++++++++++++ .../tct-deviceorientation-w3c-tests/tests.xml | 30 ++++++++ 8 files changed, 413 insertions(+) create mode 100644 webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_absolute-manual.html 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_absolute-manual.html b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_absolute-manual.html new file mode 100644 index 000000000..c7131dccc --- /dev/null +++ b/webapi/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_absolute-manual.html @@ -0,0 +1,51 @@ + + + + +Orientation Test: Rotate the device to provide an absolute orientation + + + + + +

Rotate the device to run the test.

+
+ + 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..30d48c578 --- /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..252937376 --- /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..c7444c510 --- /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..4eecf78de 100644 --- a/webapi/tct-deviceorientation-w3c-tests/tests.full.xml +++ b/webapi/tct-deviceorientation-w3c-tests/tests.full.xml @@ -102,6 +102,78 @@ + + + /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 + + + + + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_absolute-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..c0f402596 100644 --- a/webapi/tct-deviceorientation-w3c-tests/tests.xml +++ b/webapi/tct-deviceorientation-w3c-tests/tests.xml @@ -46,6 +46,36 @@ /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 + + + + + /opt/tct-deviceorientation-w3c-tests/deviceorientation/deviceorientationabsolute_absolute-manual.html + +