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

Side by Side Diff: tools/testing/architecture.py

Issue 8525005: Defer further starting timeout watch dog. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « client/tests/client/client.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 # 4 #
5 5
6 import os 6 import os
7 import platform 7 import platform
8 import re 8 import re
9 import shutil 9 import shutil
10 import subprocess 10 import subprocess
(...skipping 14 matching lines...) Expand all
25 .unittest-fail { background: #d55;} 25 .unittest-fail { background: #d55;}
26 .unittest-error { background: #a11;} 26 .unittest-error { background: #a11;}
27 </style> 27 </style>
28 </head> 28 </head>
29 <body> 29 <body>
30 <h1> Running %(title)s </h1> 30 <h1> Running %(title)s </h1>
31 <script type="text/javascript" src="%(controller_script)s"></script> 31 <script type="text/javascript" src="%(controller_script)s"></script>
32 <script type="%(script_type)s" src="%(source_script)s"></script> 32 <script type="%(script_type)s" src="%(source_script)s"></script>
33 <script type="text/javascript"> 33 <script type="text/javascript">
34 // If nobody intercepts the error, finish the test. 34 // If nobody intercepts the error, finish the test.
35 window.onerror = function() { window.layoutTestController.notifyDone() }; 35 onerror = function() { window.layoutTestController.notifyDone() };
36 36
37 window.addEventListener('DOMContentLoaded', function() { 37 document.onreadystatechange = function() {
38 if (document.readyState != "loaded") return;
38 // If 'startedDartTest' is not set, that means that the test did not have 39 // If 'startedDartTest' is not set, that means that the test did not have
39 // a chance to load. This will happen when a load error occurs in the VM. 40 // a chance to load. This will happen when a load error occurs in the VM.
40 // Give the machine time to start up. 41 // Give the machine time to start up.
41 setTimeout(function() { 42 setTimeout(function() {
42 // A window.postMessage might have been enqueued after this timeout. 43 // A window.postMessage might have been enqueued after this timeout.
43 // Just sleep another time to give the browser the time to process the 44 // Just sleep another time to give the browser the time to process the
44 // posted message. 45 // posted message.
45 setTimeout(function() { 46 setTimeout(function() {
46 if (window.layoutTestController 47 if (layoutTestController && !layoutTestController.startedDartTest) {
47 && !window.layoutTestController.startedDartTest) { 48 layoutTestController.notifyDone();
48 window.layoutTestController.notifyDone();
49 } 49 }
50 }, 0); 50 }, 0);
51 }, 50); 51 }, 50);
52 }, false); 52 };
53 </script> 53 </script>
54 </body> 54 </body>
55 </html> 55 </html>
56 """ 56 """
57 57
58 DART_TEST_AS_LIBRARY = """ 58 DART_TEST_AS_LIBRARY = """
59 #library('test'); 59 #library('test');
60 #source('%(test)s'); 60 #source('%(test)s');
61 """ 61 """
62 62
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 return DartiumArchitecture(root_path, arch, mode, component, test) 498 return DartiumArchitecture(root_path, arch, mode, component, test)
499 499
500 elif component in ['vm', 'frog', 'frogsh']: 500 elif component in ['vm', 'frog', 'frogsh']:
501 return StandaloneArchitecture(root_path, arch, mode, component, test) 501 return StandaloneArchitecture(root_path, arch, mode, component, test)
502 502
503 elif component == 'leg': 503 elif component == 'leg':
504 return LegArchitecture(root_path, arch, mode, component, test) 504 return LegArchitecture(root_path, arch, mode, component, test)
505 505
506 elif component == 'dartc': 506 elif component == 'dartc':
507 return DartcArchitecture(root_path, arch, mode, component, test) 507 return DartcArchitecture(root_path, arch, mode, component, test)
OLDNEW
« no previous file with comments | « client/tests/client/client.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698