OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |