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

Side by Side Diff: client/tests/client/dom/WindowOpenTest.dart

Issue 10191033: test renaming overhaul: step 4 client tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « client/tests/client/dom/WindowNSMETest.dart ('k') | client/tests/client/dom/WrapperTest.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #library('WindowOpenTest');
2 #import('../../../../lib/unittest/unittest.dart');
3 #import('../../../../lib/unittest/dom_config.dart');
4 #import('dart:dom');
5
6 main() {
7 evaluateJavaScript(code) {
8 final scriptTag = document.createElement('script');
9 scriptTag.innerHTML = code;
10 document.body.appendChild(scriptTag);
11 }
12 evaluateJavaScript('layoutTestController.setCanOpenWindows()');
13
14 useDomConfiguration();
15 asyncTest('TwoArgumentVersion', 1, () {
16 Window win = window.open('../resources/pong.html', 'testWindow');
17 closeWindow(win);
18 });
19 asyncTest('ThreeArgumentVersion', 1, () {
20 Window win = window.open("resources/pong.html", "testWindow", "scrollbars=ye s,width=75,height=100");
21 closeWindow(win);
22 });
23 }
24
25 closeWindow(win) {
26 win.close();
27 doneHandler() {
28 window.setTimeout(win.closed ? callbackDone : doneHandler, 1);
29 }
30 window.setTimeout(doneHandler, 1);
31 }
OLDNEW
« no previous file with comments | « client/tests/client/dom/WindowNSMETest.dart ('k') | client/tests/client/dom/WrapperTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698