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

Side by Side Diff: dart/third_party/pkg/js/test/js_wrapping/browser_tests.html

Issue 177333004: Change tests to use test.py's test_controller.js, cleanup in browser_controller (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Some Tests</title> 4 <title>Some Tests</title>
5 <style type="text/css"> 5 <style type="text/css">
6 .unittest-table { font-family: monospace; border: 1px; } 6 .unittest-table { font-family: monospace; border: 1px; }
7 .unittest-pass { background: #6b3;} 7 .unittest-pass { background: #6b3;}
8 .unittest-fail { background: #d55;} 8 .unittest-fail { background: #d55;}
9 .unittest-error { background: #a11;} 9 .unittest-error { background: #a11;}
10 .unittest-xml-log {opacity:0; color: white;} 10 .unittest-xml-log {opacity:0; color: white;}
11 .test-area { display: none; } 11 .test-area { display: none; }
12 body { overflow: visible; } 12 body { overflow: visible; }
13 </style> 13 </style>
14 </head> 14 </head>
15 <body> 15 <body>
16 <h1>Loading and running tests</h1> 16 <h1>Loading and running tests</h1>
17 <script> 17 <script>
18 18
19 function Person(firstname, lastname){ 19 function Person(firstname, lastname){
20 this.firstname = firstname; 20 this.firstname = firstname;
21 this.lastname = lastname; 21 this.lastname = lastname;
22 this.father = null; 22 this.father = null;
23 this.children = []; 23 this.children = [];
24 }; 24 };
25 Person.prototype.sayHello = function() { return "Hello, I'm " + this.firstname + " " + this.lastname; }; 25 Person.prototype.sayHello = function() { return "Hello, I'm " + this.firstname + " " + this.lastname; };
26 26
27 </script> 27 </script>
28 <script src="packages/unittest/test_controller.js"></script> 28 <script src="/root_dart/tools/testing/dart/test_controller.js"></script>
29 <script type="application/dart" src="browser_tests.dart"></script> 29 <script type="application/dart" src="browser_tests.dart"></script>
30 <script src="packages/browser/dart.js"></script> 30 <script src="packages/browser/dart.js"></script>
31 <script src="packages/browser/interop.js"></script> 31 <script src="packages/browser/interop.js"></script>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698