From 27aaeed0372f4d8667e0c0161955ff7fc417adc3 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 16 Apr 2013 10:34:53 +0200 Subject: [PATCH 1/2] Fix a bug in the test for document.dir. --- html/dom/elements/global-attributes/document-dir.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/html/dom/elements/global-attributes/document-dir.html b/html/dom/elements/global-attributes/document-dir.html index 734f922312bef3..cc1e092ff40c0e 100644 --- a/html/dom/elements/global-attributes/document-dir.html +++ b/html/dom/elements/global-attributes/document-dir.html @@ -1,10 +1,9 @@ document.dir - - + + -
@@ -20,6 +19,8 @@ }, "Setting the idl attribute to a garbage value") test(function() { document.dir = ""; - assert_equals(document.documentElement.hasAttribute("dir"), false, "Attribute should be gone"); -}, "Setting the idl attribute to the empty sting") + assert_true(document.documentElement.hasAttribute("dir"), "Attribute should still be around"); + assert_equals(document.dir, ""); + assert_equals(document.documentElement.getAttribute("dir"), ""); +}, "Setting the idl attribute to the empty string") From 110258198a00f91c52d8786db20a893fd93f078b Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 16 Apr 2013 11:43:20 +0200 Subject: [PATCH 2/2] Add a test for table.createTBody. --- .../tabular-data/the-table-element/MANIFEST | 1 + .../the-table-element/createTBody.html | 165 ++++++++++++++++++ 2 files changed, 166 insertions(+) create mode 100644 html/semantics/tabular-data/the-table-element/createTBody.html diff --git a/html/semantics/tabular-data/the-table-element/MANIFEST b/html/semantics/tabular-data/the-table-element/MANIFEST index f092fe0681f847..763e1759d48f78 100644 --- a/html/semantics/tabular-data/the-table-element/MANIFEST +++ b/html/semantics/tabular-data/the-table-element/MANIFEST @@ -1,3 +1,4 @@ +createTBody.html insertRow-method-01.html insertRow-method-02.html table-insertRow.html diff --git a/html/semantics/tabular-data/the-table-element/createTBody.html b/html/semantics/tabular-data/the-table-element/createTBody.html new file mode 100644 index 00000000000000..7927e43cae6fea --- /dev/null +++ b/html/semantics/tabular-data/the-table-element/createTBody.html @@ -0,0 +1,165 @@ + + +HTMLTableElement.createTBody + + +
+