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

Unified Diff: LayoutTests/inspector/sources/debugger/custom-element-lifecycle-events.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
Index: LayoutTests/inspector/sources/debugger/custom-element-lifecycle-events.html
diff --git a/LayoutTests/inspector/sources/debugger/custom-element-lifecycle-events.html b/LayoutTests/inspector/sources/debugger/custom-element-lifecycle-events.html
deleted file mode 100644
index ee0416b3fa6d767014d774fc18c197bab824a996..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/custom-element-lifecycle-events.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/console-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script>
-
-function test() {
- var setup = [
- "var proto = Object.create(HTMLElement.prototype);",
- "proto.createdCallback = function() { output('Invoked createdCallback.'); };",
- "proto.attachedCallback = function() { output('Invoked attachedCallback.'); };",
- "proto.detachedCallback = function() { output('Invoked detachedCallback.'); };",
- "proto.attributeChangedCallback = function() { output('Invoked attributeChangedCallback.'); };",
- "CustomElement = document.registerElement('x-foo', {prototype: proto});",
- ].join('\n');
-
- var lifecycleCallbacks = [
- "created = new CustomElement();",
- "created.setAttribute('x', '1');",
- "document.body.appendChild(created);",
- "created.remove();",
- ].join('\n');
-
- InspectorTest.startDebuggerTest(step1);
-
- function step1() {
- InspectorTest.evaluateInConsole(setup, function() {
- InspectorTest.addResult("Custom element registered.");
- InspectorTest.evaluateInConsoleAndDump("new CustomElement() instanceof CustomElement", step2);
- });
- }
-
- function step2() {
- InspectorTest.evaluateInConsole('debugger;');
- InspectorTest.waitUntilPaused(step3);
- }
-
- function step3() {
- InspectorTest.evaluateInConsoleAndDump("new CustomElement() instanceof CustomElement", step4);
- }
-
- function step4() {
- InspectorTest.evaluateInConsole(lifecycleCallbacks, InspectorTest.completeDebuggerTest);
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that custom element lifecycle events fire while debugger is paused.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698