Index: third_party/WebKit/LayoutTests/inspector-protocol/console/console-dom-mutation-violations.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/console/console-dom-mutation-violations.html b/third_party/WebKit/LayoutTests/inspector-protocol/console/console-dom-mutation-violations.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1633de99ebfb004c47971e5780ea837032aee0fb |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/console/console-dom-mutation-violations.html |
@@ -0,0 +1,23 @@ |
+<html> |
+<head> |
+<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script> |
+<script> |
+ |
+function test() |
+{ |
+ InspectorTest.eventHandler["Log.entryAdded"] = (message) => { |
+ InspectorTest.logObject(message, '', ['timestamp', 'scriptId']); |
+ }; |
+ |
+ InspectorTest.sendCommand("Log.enable", {}); |
+ InspectorTest.sendCommand("Log.startViolationsReport", {config: [{name: 'discouragedAPIUse', threshold: -1}]}); |
+ InspectorTest.sendCommand("Runtime.evaluate", { expression: "document.body.addEventListener('DOMSubtreeModified', () => {})" }, |
+ InspectorTest.completeTest.bind(InspectorTest)); |
+ |
+} |
+ |
+</script> |
+</head> |
+<body onload="runTest()"> |
+</body> |
+</html> |