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

Side by Side Diff: Source/devtools/front_end/Tests.js

Issue 211003002: DevTools: rename SourceEditor to SourceView, make entire SourcesPanel a drop target. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: For landing Created 6 years, 9 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 unified diff | Download patch
« no previous file with comments | « Source/devtools/front_end/SourcesPanel.js ('k') | Source/devtools/front_end/modules.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 * Waits until all the scripts are parsed and invokes the callback. 891 * Waits until all the scripts are parsed and invokes the callback.
892 */ 892 */
893 TestSuite.prototype._waitUntilScriptsAreParsed = function(expectedScripts, callb ack) 893 TestSuite.prototype._waitUntilScriptsAreParsed = function(expectedScripts, callb ack)
894 { 894 {
895 var test = this; 895 var test = this;
896 896
897 function waitForAllScripts() { 897 function waitForAllScripts() {
898 if (test._scriptsAreParsed(expectedScripts)) 898 if (test._scriptsAreParsed(expectedScripts))
899 callback(); 899 callback();
900 else 900 else
901 test.addSniffer(WebInspector.panels.sources.sourcesEditor(), "_addUI SourceCode", waitForAllScripts); 901 test.addSniffer(WebInspector.panels.sources.sourcesView(), "_addUISo urceCode", waitForAllScripts);
902 } 902 }
903 903
904 waitForAllScripts(); 904 waitForAllScripts();
905 }; 905 };
906 906
907 907
908 /** 908 /**
909 * Key event with given key identifier. 909 * Key event with given key identifier.
910 */ 910 */
911 TestSuite.createKeyEvent = function(keyIdentifier) 911 TestSuite.createKeyEvent = function(keyIdentifier)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 var oldLoadCompleted = InspectorFrontendAPI.loadCompleted; 961 var oldLoadCompleted = InspectorFrontendAPI.loadCompleted;
962 InspectorFrontendAPI.loadCompleted = function() 962 InspectorFrontendAPI.loadCompleted = function()
963 { 963 {
964 oldLoadCompleted.call(InspectorFrontendAPI); 964 oldLoadCompleted.call(InspectorFrontendAPI);
965 runTests(); 965 runTests();
966 } 966 }
967 967
968 })(); 968 })();
969 969
970 } 970 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/SourcesPanel.js ('k') | Source/devtools/front_end/modules.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698