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

Unified Diff: LayoutTests/fast/dynamic/insertAdjacentHTML.html

Issue 109273003: Make arguments to insertAdjacentHTML method non-optional (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Correct base. Should not include https://codereview.chromium.org/110383002/ Created 7 years 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/dynamic/insertAdjacentHTML-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dynamic/insertAdjacentHTML.html
diff --git a/LayoutTests/fast/dynamic/insertAdjacentHTML.html b/LayoutTests/fast/dynamic/insertAdjacentHTML.html
index 7013597ab21636af300a059b5308ddfe92dab86a..52b13b6faa9ec43b030e85198d16e28520f9a13c 100644
--- a/LayoutTests/fast/dynamic/insertAdjacentHTML.html
+++ b/LayoutTests/fast/dynamic/insertAdjacentHTML.html
@@ -40,6 +40,14 @@ if (window.testRunner)
document.createElement('div').insertAdjacentHTML("afterEnd", "<span>html</span>");
}) && passes;
+ passes = assertThrows(function() {
+ document.getElementById("container").insertAdjacentHTML();
+ }) && passes;
+
+ passes = assertThrows(function() {
+ document.getElementById("container").insertAdjacentHTML("beforeBegin");
+ }) && passes;
+
if (passes) {
document.getElementById("status").style.color = "green";
document.getElementById("status").innerHTML = "<br><br>PASS";
« no previous file with comments | « no previous file | LayoutTests/fast/dynamic/insertAdjacentHTML-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698