Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception.html

Issue 752153002: Sync XMLSerializer IDL with spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698