[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    tests/khtmltests/regression
From:       Harri Porten <porten () kde ! org>
Date:       2010-02-27 20:36:53
Message-ID: 1267303013.771480.21859.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1096854 by porten:

Older tests of mine.


 M  +47 -0     baseline/css/computed.html-dom  
 A             baseline/ecma/innerhtml-space.html-dom  
 M  +2 -0      baseline/ecma/svnignore  
 A             baseline/unsorted/84498.html-dom  
 M  +2 -0      baseline/unsorted/svnignore  
 M  +15 -0     tests/css/computed.html  
 A             tests/dom/text-innerHTML.html  
 A             tests/ecma/innerhtml-space.html  
 A             tests/unsorted/84498.html  


--- trunk/tests/khtmltests/regression/baseline/css/computed.html-dom #1096853:1096854
@@ -49,6 +49,25 @@
       #text "
 
     "
+      DIV id="liststyle" style="list-style-type: square"
+      #text "
+    "
+      DIV id="fontfamilygen" style="font-family: serif"
+      #text "
+    "
+      DIV id="fontfamily" style="font-family: 'helvetica'"
+      #text "
+    "
+      DIV id="bgpos" style="background-position: 1px 2px"
+      #text "
+    "
+      DIV id="borderspacing" style="border-spacing: 3px 4px"
+      #text "
+    "
+      DIV id="textdeco" style="text-decoration: underline"
+      #text "
+
+    "
       SCRIPT type="text/javascript"
         #text "
       function cssProperty(id, property) {
@@ -63,6 +82,14 @@
       shouldBe("cssProperty('aaa', 'display')", "'block'");
       shouldBe("cssProperty('aac', 'display')", "'inline'");
 
+      // had a bug with the quoting of string values
+      shouldBe("cssProperty('liststyle', 'list-style-type')", "'square'");
+      shouldBeFalse("cssProperty('fontfamilygen', 'font-family')[0] == '\\''");
+// fails with Opera  shouldBeTrue("cssProperty('fontfamily', 'font-family')[0] == '\\''");
+      shouldBe("cssProperty('bgpos', 'background-position')", "'1px 2px'");
+      shouldBe("cssProperty('borderspacing', 'border-spacing')", "'3px 4px'");
+      shouldBe("cssProperty('textdeco', 'text-decoration')", "'underline'");
+
       debug("Done");
 
     "
@@ -86,6 +113,26 @@
         #text "PASS"
       #text " cssProperty('aac', 'display') is 'inline'"
       BR
+      SPAN style="color:green"
+        #text "PASS"
+      #text " cssProperty('liststyle', 'list-style-type') is 'square'"
+      BR
+      SPAN style="color:green"
+        #text "PASS"
+      #text " cssProperty('fontfamilygen', 'font-family')[0] == '\'' is false"
+      BR
+      SPAN style="color:green"
+        #text "PASS"
+      #text " cssProperty('bgpos', 'background-position') is '1px 2px'"
+      BR
+      SPAN style="color:green"
+        #text "PASS"
+      #text " cssProperty('borderspacing', 'border-spacing') is '3px 4px'"
+      BR
+      SPAN style="color:green"
+        #text "PASS"
+      #text " cssProperty('textdeco', 'text-decoration') is 'underline'"
+      BR
       #text "Done
 
   "
--- trunk/tests/khtmltests/regression/baseline/ecma/svnignore #1096853:1096854
@@ -35,6 +35,8 @@
 window_global.html-dump.png
 innerhtml-getelbyid.html-dump.png
 innerhtml-getelbyid.html-render
+innerhtml-space.html-dump.png
+innerhtml-space.html-render
 docu-all-frame.html-dump.png
 docu-all-iframe.html-dump.png
 docu-frames.html-dump.png
--- trunk/tests/khtmltests/regression/baseline/unsorted/svnignore #1096853:1096854
@@ -23,6 +23,8 @@
 83996-2.html-dom
 83996.html-dom
 86644.html-dom
+84498.html-render
+84498.html-dump.png
 91327.html-dom
 minheight.html-dom
 90668.html-dom
--- trunk/tests/khtmltests/regression/tests/css/computed.html #1096853:1096854
@@ -31,6 +31,13 @@
 	<div id="aac" style="display: inline">Ccc</div>
     </div>
 
+    <div id="liststyle" style="list-style-type: square"></div>
+    <div id="fontfamilygen" style="font-family: serif"></div>
+    <div id="fontfamily" style="font-family: 'helvetica'"></div>
+    <div id="bgpos" style="background-position: 1px 2px"></div>
+    <div id="borderspacing" style="border-spacing: 3px 4px"></div>
+    <div id="textdeco" style="text-decoration: underline"></div>
+
     <script type="text/javascript">
       function cssProperty(id, property) {
          var e = document.getElementById(id);
@@ -44,6 +51,14 @@
       shouldBe("cssProperty('aaa', 'display')", "'block'");
       shouldBe("cssProperty('aac', 'display')", "'inline'");
 
+      // had a bug with the quoting of string values
+      shouldBe("cssProperty('liststyle', 'list-style-type')", "'square'");
+      shouldBeFalse("cssProperty('fontfamilygen', 'font-family')[0] == '\\''");
+// fails with Opera  shouldBeTrue("cssProperty('fontfamily', 'font-family')[0] == '\\''");
+      shouldBe("cssProperty('bgpos', 'background-position')", "'1px 2px'");
+      shouldBe("cssProperty('borderspacing', 'border-spacing')", "'3px 4px'");
+      shouldBe("cssProperty('textdeco', 'text-decoration')", "'underline'");
+
       debug("Done");
 
     </script>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic