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

Side by Side Diff: tools/testing/dart/browser_test.dart

Issue 9271083: Add doctype to test html boilerplate so that IE 9 does not go into quirks mode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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
« no previous file with comments | « no previous file | 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 String GetHtmlContents(String title, 5 String GetHtmlContents(String title,
6 String controllerScript, 6 String controllerScript,
7 String scriptType, 7 String scriptType,
8 String sourceScript) => 8 String sourceScript) =>
9 """ 9 """
10 <!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"
Bill Hesse 2012/01/27 01:53:32 I actually like the longer version, if it is close
11 \"http://www.w3.org/TR/html4/strict.dtd\">
10 <html> 12 <html>
11 <head> 13 <head>
12 <title> Test $title </title> 14 <title> Test $title </title>
13 <style> 15 <style>
14 .unittest-table { font-family:monospace; border:1px; } 16 .unittest-table { font-family:monospace; border:1px; }
15 .unittest-pass { background: #6b3;} 17 .unittest-pass { background: #6b3;}
16 .unittest-fail { background: #d55;} 18 .unittest-fail { background: #d55;}
17 .unittest-error { background: #a11;} 19 .unittest-error { background: #a11;}
18 </style> 20 </style>
19 </head> 21 </head>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 waitForDone(); 96 waitForDone();
95 } else { 97 } else {
96 pass(); 98 pass();
97 } 99 }
98 mainIsFinished = true; 100 mainIsFinished = true;
99 } catch(var e, var trace) { 101 } catch(var e, var trace) {
100 fail(e, trace); 102 fail(e, trace);
101 } 103 }
102 } 104 }
103 """; 105 """;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698