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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 | 878 |
879 function runTests() | 879 function runTests() |
880 { | 880 { |
881 uiTests._populatedInterface = true; | 881 uiTests._populatedInterface = true; |
882 var name = uiTests._pendingTestName; | 882 var name = uiTests._pendingTestName; |
883 delete uiTests._pendingTestName; | 883 delete uiTests._pendingTestName; |
884 if (name) | 884 if (name) |
885 new TestSuite().runTest(name); | 885 new TestSuite().runTest(name); |
886 } | 886 } |
887 | 887 |
888 var oldLoadCompleted = InspectorFrontendAPI.loadCompleted; | 888 WebInspector.notifications.addEventListener(WebInspector.NotificationService.Eve
nts.InspectorUILoadedForTests, runTests); |
889 InspectorFrontendAPI.loadCompleted = function() | |
890 { | |
891 oldLoadCompleted.call(InspectorFrontendAPI); | |
892 runTests(); | |
893 } | |
894 | 889 |
895 })(); | 890 })(); |
896 | 891 |
897 } | 892 } |
OLD | NEW |