Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / jump-to-previous-editing-location.html
index 4caa5fd..a6b7be1 100644 (file)
@@ -1,6 +1,7 @@
 <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/workspace-test.js"></script>
 <script src="../http/tests/inspector/debugger-test.js"></script>
 <script src="resources/example-fileset-for-test.js"></script>
@@ -8,7 +9,6 @@
 <script>
 function test()
 {
-    WebInspector.inspectorView.showPanel("sources");
     var panel = WebInspector.panels.sources;
     var sourcesView = panel._sourcesView;
     var historyManager = sourcesView._historyManager;
@@ -221,17 +221,17 @@ function test()
             function onScriptSource(uiSourceCode)
             {
                 var linkifier = new WebInspector.Linkifier();
-                WebInspector.inspectorView.showPanel("timeline");
                 var anchorURI = uiSourceCode.url;
                 var anchor = linkifier.linkifyScriptLocation(WebInspector.targetManager.mainTarget(), null, anchorURI, 10, 1);
-                WebInspector.Revealer.reveal(anchor.__uiLocation);
-                InspectorTest.addResult("Selection: " + panel.visibleView.textEditor.selection().toString());
-                dumpSelection(panel.visibleView.textEditor, "Showed anchor in " + anchorURI.split("/").pop() + " with line 333 column 3");
-                rollback();
-                dumpSelection(panel.visibleView.textEditor, "Rolled back");
-                rollover();
-                dumpSelection(panel.visibleView.textEditor, "Rolled over");
-                next();
+                WebInspector.Revealer.revealPromise(anchor.__uiLocation).then(function() {
+                    InspectorTest.addResult("Selection: " + panel.visibleView.textEditor.selection().toString());
+                    dumpSelection(panel.visibleView.textEditor, "Showed anchor in " + anchorURI.split("/").pop() + " with line 333 column 3");
+                    rollback();
+                    dumpSelection(panel.visibleView.textEditor, "Rolled back");
+                    rollover();
+                    dumpSelection(panel.visibleView.textEditor, "Rolled over");
+                    next();
+                });
             }
         },