Fix bug TTS-1832 TC displayed style does not match expected result
authorFeng Gang <gangx.feng@intel.com>
Mon, 5 Aug 2013 03:54:22 +0000 (20:54 -0700)
committeryunfeix.hao <yunfeix.hao@intel.com>
Mon, 5 Aug 2013 06:08:55 +0000 (14:08 +0800)
Change-Id: I262fd573236614d52b94545497111f01997f5510
Signed-off-by: Feng Gang <gangx.feng@intel.com>
packaging/behavior.spec
res/css/COPYING [new file with mode: 0644]
res/css/a-green.css [new file with mode: 0644]
res/css/blue-100x100.css [new file with mode: 0644]
res/css/canvas-index.css [new file with mode: 0644]
res/css/test.css [new file with mode: 0644]
tct-behavior-tests.spec

index e3a3d9c..dc17e28 100644 (file)
@@ -40,6 +40,7 @@ mkdir -p $RPM_BUILD_ROOT/opt/%name/res/media
 cp -a $RPM_BUILD_DIR/%name-%version/res/font $RPM_BUILD_ROOT/opt/%name/res/font
 cp -a $RPM_BUILD_DIR/%name-%version/res/images $RPM_BUILD_ROOT/opt/%name/res/images
 cp -a $RPM_BUILD_DIR/%name-%version/res/js $RPM_BUILD_ROOT/opt/%name/res/js
+cp -a $RPM_BUILD_DIR/%name-%version/res/css $RPM_BUILD_ROOT/opt/%name/res/css
 cp -a $RPM_BUILD_DIR/%name-%version/res/media/red-green.theora.ogv $RPM_BUILD_ROOT/opt/%name/res/media/
 zip -rq $RPM_BUILD_ROOT/opt/%name/%name.wgt *
 hash-signer.sh -ad -p platform $RPM_BUILD_ROOT/opt/%name/%name.wgt
diff --git a/res/css/COPYING b/res/css/COPYING
new file mode 100644 (file)
index 0000000..5270f44
--- /dev/null
@@ -0,0 +1,34 @@
+canvas-index.css comes from
+http://w3c-test.org/html/tests/approved/common/canvas-index.css
+without any modification.
+
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
+-------------------------------
+a-green.css comes from
+http://test.csswg.org/source/approved/css-masking/src/support/a-green.css
+without any modification.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+  http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+  http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+  http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
+Contributions to this repository are governed by the W3C's Policies
+for Contribution of Testcases to W3C:
+  http://www.w3.org/2004/10/27-testcases
+
+Contributors who are not members of the CSS Working Group must agree
+to the terms of Grant II by filling out this form:
+  http://www.w3.org/2002/09/wbs/1/testgrants2-200409/
+before submitting any tests to this repository.
diff --git a/res/css/a-green.css b/res/css/a-green.css
new file mode 100644 (file)
index 0000000..636c1bc
--- /dev/null
@@ -0,0 +1 @@
+.a { color: green; }
\ No newline at end of file
diff --git a/res/css/blue-100x100.css b/res/css/blue-100x100.css
new file mode 100644 (file)
index 0000000..84aded5
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Hao, Yunfei <yunfeix.hao@intel.com>
+
+*/
+
+#test-blue {
+    background-color: blue;
+    height: 100px;
+    width: 100px;
+}
diff --git a/res/css/canvas-index.css b/res/css/canvas-index.css
new file mode 100644 (file)
index 0000000..3e09ffb
--- /dev/null
@@ -0,0 +1,31 @@
+body {
+    font-size: small;
+    font-family: sans-serif;
+}
+
+a {
+    text-decoration: none;
+}
+
+a:hover {
+    text-decoration: underline;
+}
+
+h3 {
+    display: inline;
+    font-size: medium;
+}
+
+h3 + p {
+    display: inline;
+    margin-left: 0.5em;
+}
+
+li {
+    list-style-type: none;
+}
+
+ul {
+    padding-left: 2em;
+    margin-left: 0;
+}
\ No newline at end of file
diff --git a/res/css/test.css b/res/css/test.css
new file mode 100644 (file)
index 0000000..fc87d3a
--- /dev/null
@@ -0,0 +1 @@
+pre.prettyprint{padding:5px;font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;margin-bottom:10px;background-color:#eee;overflow:auto;width:auto;width:650px !ie7;padding-bottom:20px !ie7;max-height:600px;}pre.prettyprint{max-height:none\9;}code.prettyprint{font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;background-color:#eee;}p code.prettyprint{padding:1px 5px 1px 5px;}.str{color:maroon;}.kwd{color:#00008b;}.com{color:gray;}.typ{color:#2b91af;}.lit{color:maroon;}.pun{color:#000;}.pln{color:#000;}.tag{color:maroon;}.atn{color:red;}.atv{color:blue;}.dec{color:purple;}@media print{.str{color:#060;}.kwd{color:#006;font-weight:bold;}.com{color:#600;font-style:italic;}.typ{color:#404;font-weight:bold;}.lit{color:#044;}.pun{color:#440;}.pln{color:#000;}.tag{color:#006;font-weight:bold;}.atn{color:#404;}.atv{color:#060;}}
\ No newline at end of file
index 46da2b5..c5901ba 100644 (file)
@@ -39,6 +39,7 @@ mkdir -p $RPM_BUILD_ROOT/opt/%name/res/media
 cp -a $pre_dir/res/font $RPM_BUILD_ROOT/opt/%name/res/font
 cp -a $pre_dir/res/images $RPM_BUILD_ROOT/opt/%name/res/images
 cp -a $pre_dir/res/js $RPM_BUILD_ROOT/opt/%name/res/js
+cp -a $pre_dir/res/css $RPM_BUILD_ROOT/opt/%name/res/css
 cp -a $pre_dir/res/media/red-green.theora.ogv $RPM_BUILD_ROOT/opt/%name/res/media/
 zip -rq $RPM_BUILD_ROOT/opt/%name/%name.wgt *
 cd $pre_dir/signing/