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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/console/console-dom-mutation-violations.html

Issue 2863183003: DevTools: report adding mutation event listener as a violations. (Closed)
Patch Set: same Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/console/console-dom-mutation-violations-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/console/console-dom-mutation-violations-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698