Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 11 matching lines...) Expand all Loading... | |
| 22 <style> | 22 <style> |
| 23 .unittest-table { font-family:monospace; border:1px; } | 23 .unittest-table { font-family:monospace; border:1px; } |
| 24 .unittest-pass { background: #6b3;} | 24 .unittest-pass { background: #6b3;} |
| 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> | |
| 33 <script type="text/javascript"> | 32 <script type="text/javascript"> |
| 34 // If nobody intercepts the error, finish the test. | 33 // If nobody intercepts the error, finish the test. |
| 35 onerror = function() { window.layoutTestController.notifyDone() }; | 34 onerror = function() { window.layoutTestController.notifyDone() }; |
| 36 | 35 |
| 37 document.onreadystatechange = function() { | 36 document.onreadystatechange = function() { |
| 38 if (document.readyState != "loaded") return; | 37 if (document.readyState != "loaded") return; |
| 39 // If 'startedDartTest' is not set, that means that the test did not have | 38 // If 'startedDartTest' is not set, that means that the test did not have |
| 40 // a chance to load. This will happen when a load error occurs in the VM. | 39 // a chance to load. This will happen when a load error occurs in the VM. |
| 41 // Give the machine time to start up. | 40 // Give the machine time to start up. |
| 42 setTimeout(function() { | 41 setTimeout(function() { |
| 43 // A window.postMessage might have been enqueued after this timeout. | 42 // A window.postMessage might have been enqueued after this timeout. |
| 44 // Just sleep another time to give the browser the time to process the | 43 // Just sleep another time to give the browser the time to process the |
| 45 // posted message. | 44 // posted message. |
| 46 setTimeout(function() { | 45 setTimeout(function() { |
| 47 if (layoutTestController && !layoutTestController.startedDartTest) { | 46 if (layoutTestController && !layoutTestController.startedDartTest) { |
| 48 layoutTestController.notifyDone(); | 47 layoutTestController.notifyDone(); |
| 49 } | 48 } |
| 50 }, 0); | 49 }, 0); |
| 51 }, 50); | 50 }, 50); |
| 52 }; | 51 }; |
| 53 </script> | 52 </script> |
| 53 <script type="%(script_type)s" src="%(source_script)s"></script> | |
|
Siggi Cherem (dart-lang)
2011/12/22 00:24:02
this move was useful because isolates derive the w
| |
| 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 |
| 63 DART_CONTENTS = """ | 63 DART_CONTENTS = """ |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 596 return WebDriverArchitecture(root_path, arch, mode, component, test) | 596 return WebDriverArchitecture(root_path, arch, mode, component, test) |
| 597 | 597 |
| 598 elif component in ['vm', 'frog', 'frogsh']: | 598 elif component in ['vm', 'frog', 'frogsh']: |
| 599 return StandaloneArchitecture(root_path, arch, mode, component, test) | 599 return StandaloneArchitecture(root_path, arch, mode, component, test) |
| 600 | 600 |
| 601 elif component == 'leg': | 601 elif component == 'leg': |
| 602 return LegArchitecture(root_path, arch, mode, component, test) | 602 return LegArchitecture(root_path, arch, mode, component, test) |
| 603 | 603 |
| 604 elif component == 'dartc': | 604 elif component == 'dartc': |
| 605 return DartcArchitecture(root_path, arch, mode, component, test) | 605 return DartcArchitecture(root_path, arch, mode, component, test) |
| OLD | NEW |