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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Document/replaceChild-null-oldChild.html

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 months 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
Index: third_party/WebKit/LayoutTests/fast/dom/Document/replaceChild-null-oldChild.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Document/replaceChild-null-oldChild.html b/third_party/WebKit/LayoutTests/fast/dom/Document/replaceChild-null-oldChild.html
index d9ab5cf8c3de95b9fc98cc287617217c14f5cbb1..2c72ddecceba75d640ca4b7624ac1615560d58ed 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Document/replaceChild-null-oldChild.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Document/replaceChild-null-oldChild.html
@@ -4,6 +4,10 @@
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/replaceChild-null-oldChild.js"></script>
+<script>
+description('Test behavior of Document.replaceChild() when oldChild is null.');
+
+shouldThrow('document.replaceChild(document.firstChild, null)', '"TypeError: Failed to execute \'replaceChild\' on \'Node\': parameter 2 is not of type \'Node\'."');
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698