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

Side by Side Diff: pkg/unittest/lib/html_layout_config.dart

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 * A configuration for running layoutr tests with testrunner. 6 * A configuration for running layoutr tests with testrunner.
7 * This configuration is similar to the interactive_html_config 7 * This configuration is similar to the interactive_html_config
8 * as it runs each test in its own IFrame. However, where the former 8 * as it runs each test in its own IFrame. However, where the former
9 * recreated the IFrame for each test, here the IFrames are preserved. 9 * recreated the IFrame for each test, here the IFrames are preserved.
10 * Furthermore we post a message on completion. 10 * Furthermore we post a message on completion.
11 */ 11 */
12 #library('html_layout_config'); 12 library html_layout_config;
13 13
14 #import('dart:html'); 14 import 'dart:html';
15 #import('dart:math'); 15 import 'dart:math';
16 #import('unittest.dart'); 16 import 'unittest.dart';
17 17
18 /** The messages exchanged between parent and child. */ 18 /** The messages exchanged between parent and child. */
19 // TODO(gram) At some point postMessage was supposed to support 19 // TODO(gram) At some point postMessage was supposed to support
20 // sending arrays and maps. When it does we can get rid of the encoding/ 20 // sending arrays and maps. When it does we can get rid of the encoding/
21 // decoding of messages as string. 21 // decoding of messages as string.
22 class _Message { 22 class _Message {
23 static final START = 'start'; 23 static final START = 'start';
24 static final LOG = 'log'; 24 static final LOG = 'log';
25 static final STACK = 'stack'; 25 static final STACK = 'stack';
26 static final PASS = 'pass'; 26 static final PASS = 'pass';
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 */ 301 */
302 void useHtmlLayoutConfiguration() { 302 void useHtmlLayoutConfiguration() {
303 if (window.location.search == '') { // This is the parent. 303 if (window.location.search == '') { // This is the parent.
304 _prepareDom(); 304 _prepareDom();
305 configure(new ParentHtmlConfiguration()); 305 configure(new ParentHtmlConfiguration());
306 } else { 306 } else {
307 configure(new ChildHtmlConfiguration()); 307 configure(new ChildHtmlConfiguration());
308 } 308 }
309 } 309 }
310 310
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698