3 <meta id=
"test" name=
"foo" scheme=
"bar" http-equiv=
"content-type" content=
"text/html; charset=UTF-8">
6 You should see
5 lines with
"SUCCESS" below:
9 testRunner
.dumpAsText();
11 function checkExpected(actual
, expected
)
13 if (actual
!= expected
)
14 document
.writeln("<p>FAILURE: expected \"" + expected
+ "\", actual \"" + actual
+ "\"</p>");
16 document
.writeln("<p>SUCCESS (value: \"" + actual
+ "\")</p>");
19 var metaTag
= document
.getElementById("test");
20 checkExpected(metaTag
, "[object HTMLMetaElement]");
21 checkExpected(metaTag
.name
, "foo");
22 checkExpected(metaTag
.scheme
, "bar");
23 checkExpected(metaTag
.httpEquiv
, "content-type");
24 checkExpected(metaTag
.content
, "text/html; charset=UTF-8");