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

Unified Diff: LayoutTests/inspector/sources/debugger/watch-expressions-preserve-expansion.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/watch-expressions-preserve-expansion.html
diff --git a/LayoutTests/inspector/sources/debugger/watch-expressions-preserve-expansion.html b/LayoutTests/inspector/sources/debugger/watch-expressions-preserve-expansion.html
deleted file mode 100644
index 013a783d7b08f3dbfd991096dd93a5da263a8895..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/watch-expressions-preserve-expansion.html
+++ /dev/null
@@ -1,94 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script>
-
-var globalObject = {
- foo: {
- bar: {
- baz: 2012
- }
- }
-};
-var windowAlias = window;
-
-var test = function()
-{
- var watchExpressionsSection;
- InspectorTest.startDebuggerTest(step1);
-
- function step1()
- {
- var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExpressions;
- watchExpressionsPane.expand();
-
- watchExpressionsSection = watchExpressionsPane.section;
- watchExpressionsSection.watchExpressions = [];
- watchExpressionsSection.watchExpressions.push("globalObject");
- watchExpressionsSection.watchExpressions.push("windowAlias");
-
- InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype, "updateProperties", step2);
- watchExpressionsSection.update();
- }
-
- function expandProperty(parent, path, callback)
- {
- if (!path.length) return callback();
- var childName = path.shift();
- var child = InspectorTest._findChildPropertyTreeElement(parent, childName);
- if (!child) {
- InspectorTest.addResult("Child not found: " + childName);
- InspectorTest.completeTest()
- return;
- }
- InspectorTest.addResult("expanded " + childName + " " + child.property.value);
- function afterGetOwnProperties() {
- InspectorTest.runAfterPendingDispatches(expandProperty.bind(this, child, path, callback));
- }
- InspectorTest.addSniffer(child.property.value, "getOwnProperties", afterGetOwnProperties.bind(this));
- child.expand();
-
- }
-
- function dumpObjectPropertiesTreeElement(treeElement, indent)
- {
- if (treeElement.property)
- InspectorTest.addResult(indent + treeElement.property.name + ": " + treeElement.property.value._description);
- for (var i = 0; i < treeElement.children.length; i++)
- dumpObjectPropertiesTreeElement(treeElement.children[i], " " + indent);
- }
-
- function step2()
- {
- InspectorTest.addResult("Watch expressions added.");
- expandProperty(watchExpressionsSection.propertiesTreeOutline, ["globalObject", "foo", "bar"], step3);
- }
-
- function step3()
- {
- InspectorTest.addResult("Watch expressions expanded.");
- dumpObjectPropertiesTreeElement(watchExpressionsSection.propertiesTreeOutline, "");
- InspectorTest.reloadPage(step4);
- }
-
- function step4()
- {
- InspectorTest.addResult("Watch expressions after page reload:");
- dumpObjectPropertiesTreeElement(watchExpressionsSection.propertiesTreeOutline, "");
-
- // Clear watch expressions after execution.
- watchExpressionsSection.watchExpressions = [];
- watchExpressionsSection.update();
- InspectorTest.completeDebuggerTest();
- }
-}
-
-</script>
-</head>
-<body onload="runTest()">
-<p>Test that watch expressions expansion state is restored after update.</p>
-<a href="https://bugs.webkit.org/show_bug.cgi?id=99304">Bug 99304</a>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698