| Index: LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception.html
|
| diff --git a/LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception.html b/LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception.html
|
| index 88d0168963351dc3a3dce4e1951206d1d74f12a1..34675f9117a31a76fa9e7b28058386c8c6aea1e4 100644
|
| --- a/LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception.html
|
| +++ b/LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception.html
|
| @@ -20,12 +20,12 @@ function shouldThrowException(node)
|
| {
|
| document.body.appendChild(document.createElement("br"));
|
| var header = document.createElement("div");
|
| - header.textContent = ++count + ". Verifying XMLSerializer.serializeToString() should THROW exception with node value = " + node;
|
| + header.textContent = ++count + ". Verifying XMLSerializer.serializeToString() should THROW exception with " + (arguments.length ? "argument " + node : "no argument");
|
| document.body.appendChild(header);
|
|
|
| var xs = new XMLSerializer();
|
| try {
|
| - var str = xs.serializeToString(node);
|
| + var str = xs.serializeToString.apply(xs, arguments);
|
|
|
| var result = document.createElement("div");
|
| result.className = "failed"
|
| @@ -48,7 +48,7 @@ function shouldNOTThrowException(node)
|
| {
|
| document.body.appendChild(document.createElement("br"));
|
| var header = document.createElement("div");
|
| - header.textContent = ++count + ". Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = " + node;
|
| + header.textContent = ++count + ". Verifying XMLSerializer.serializeToString() should NOT-THROW exception with argument " + node;
|
| document.body.appendChild(header);
|
|
|
| var xs = new XMLSerializer();
|
| @@ -74,6 +74,7 @@ function shouldNOTThrowException(node)
|
|
|
| function runTest()
|
| {
|
| + shouldThrowException();
|
| shouldThrowException(null);
|
| shouldThrowException(undefined);
|
| shouldThrowException("<html><title>Hello World</title></html>");
|
| @@ -102,4 +103,4 @@ function runTest()
|
| This tests XMLSerializer.serializeToString() throwing exception when node value is invalid and passing otherwise.
|
| <h1 id="heading"/>
|
| </body>
|
| -</html>
|
| +</html>
|
|
|