Test for new support of empty style sheets.
authorbdakin <bdakin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Aug 2007 23:46:36 +0000 (23:46 +0000)
committerbdakin <bdakin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Aug 2007 23:46:36 +0000 (23:46 +0000)
        * fast/css/emptyStyleTag-expected.txt: Added.
        * fast/css/emptyStyleTag.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25083 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/css/emptyStyleTag-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/emptyStyleTag.html [new file with mode: 0644]

index 2d2075d4e0052abda978cdcbef10406dc9ee21f7..1d80c4f9e00f0b52722711b94fb7b2177a0aa8a2 100644 (file)
@@ -1,3 +1,10 @@
+2007-08-14  Beth Dakin  <bdakin@apple.com>
+
+        Test for new support of empty style sheets.
+
+        * fast/css/emptyStyleTag-expected.txt: Added.
+        * fast/css/emptyStyleTag.html: Added.
+
 2007-08-14  Justin Garcia  <justin.garcia@apple.com>
 
         Reviewed by Tim.
diff --git a/LayoutTests/fast/css/emptyStyleTag-expected.txt b/LayoutTests/fast/css/emptyStyleTag-expected.txt
new file mode 100644 (file)
index 0000000..1f3da5a
--- /dev/null
@@ -0,0 +1,2 @@
+This tests that we support empty style sheets.
+Test succeeded!
diff --git a/LayoutTests/fast/css/emptyStyleTag.html b/LayoutTests/fast/css/emptyStyleTag.html
new file mode 100644 (file)
index 0000000..25d70ba
--- /dev/null
@@ -0,0 +1,16 @@
+<style></style>
+
+This tests that we support empty style sheets.
+
+<div id="result">Test failed.</div>
+
+<script>
+if (layoutTestController)
+    layoutTestController.dumpAsText();
+
+if (document.styleSheets[0]) {
+    var result = document.getElementById("result");
+    result.innerHTML = "Test succeeded!";
+}
+</script>
+