diff options
Diffstat (limited to 'LayoutTests/fast/dom/HTMLMetaElement')
-rw-r--r-- | LayoutTests/fast/dom/HTMLMetaElement/meta-attributes-expected.txt | 10 | ||||
-rw-r--r-- | LayoutTests/fast/dom/HTMLMetaElement/meta-attributes.html | 28 |
2 files changed, 38 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/HTMLMetaElement/meta-attributes-expected.txt b/LayoutTests/fast/dom/HTMLMetaElement/meta-attributes-expected.txt new file mode 100644 index 0000000..77e76d1 --- /dev/null +++ b/LayoutTests/fast/dom/HTMLMetaElement/meta-attributes-expected.txt @@ -0,0 +1,10 @@ +You should see 5 lines with "SUCCESS" below: +SUCCESS (value: "[object HTMLMetaElement]") + +SUCCESS (value: "foo") + +SUCCESS (value: "bar") + +SUCCESS (value: "content-type") + +SUCCESS (value: "text/html; charset=UTF-8") diff --git a/LayoutTests/fast/dom/HTMLMetaElement/meta-attributes.html b/LayoutTests/fast/dom/HTMLMetaElement/meta-attributes.html new file mode 100644 index 0000000..181565c --- /dev/null +++ b/LayoutTests/fast/dom/HTMLMetaElement/meta-attributes.html @@ -0,0 +1,28 @@ +<html> +<head> +<meta id="test" name="foo" scheme="bar" http-equiv="content-type" content="text/html; charset=UTF-8"> +</head> +<body> +You should see 5 lines with "SUCCESS" below: +<script> +if (window.layoutTestController) + layoutTestController.dumpAsText(); + +function checkExpected(actual, expected) +{ + if (actual != expected) + document.writeln("<p>FAILURE: expected \"" + expected + "\", actual \"" + actual + "\"</p>"); + else + document.writeln("<p>SUCCESS (value: \"" + actual + "\")</p>"); +} + +var metaTag = document.getElementById("test"); +checkExpected(metaTag, "[object HTMLMetaElement]"); +checkExpected(metaTag.name, "foo"); +checkExpected(metaTag.scheme, "bar"); +checkExpected(metaTag.httpEquiv, "content-type"); +checkExpected(metaTag.content, "text/html; charset=UTF-8"); +</script> + +</body> +</html> |