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

Side by Side Diff: tests/html/js_test.dart

Issue 231413003: using unittest via package import (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 6 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 | « tests/html/js_interop_1_test.dart ('k') | tests/html/keyboard_event_test.dart » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library jsTest; 5 library jsTest;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'dart:typed_data' show ByteBuffer, Int32List; 9 import 'dart:typed_data' show ByteBuffer, Int32List;
10 import 'dart:indexed_db' show IdbFactory, KeyRange; 10 import 'dart:indexed_db' show IdbFactory, KeyRange;
11 import 'dart:js'; 11 import 'dart:js';
12 12
13 import '../../pkg/unittest/lib/unittest.dart'; 13 import 'package:unittest/unittest.dart';
14 import '../../pkg/unittest/lib/html_config.dart'; 14 import 'package:unittest/html_config.dart';
15 15
16 _injectJs() { 16 _injectJs() {
17 final script = new ScriptElement(); 17 final script = new ScriptElement();
18 script.type = 'text/javascript'; 18 script.type = 'text/javascript';
19 script.innerHtml = r""" 19 script.innerHtml = r"""
20 var x = 42; 20 var x = 42;
21 21
22 var _x = 123; 22 var _x = 123;
23 23
24 var myArray = ["value1"]; 24 var myArray = ["value1"];
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 // expect(context.callMethod('isPropertyInstanceOf', ['o', listType]), 1005 // expect(context.callMethod('isPropertyInstanceOf', ['o', listType]),
1006 // isTrue); 1006 // isTrue);
1007 context.deleteProperty('o'); 1007 context.deleteProperty('o');
1008 } 1008 }
1009 }); 1009 });
1010 1010
1011 }); 1011 });
1012 }); 1012 });
1013 1013
1014 } 1014 }
OLDNEW
« no previous file with comments | « tests/html/js_interop_1_test.dart ('k') | tests/html/keyboard_event_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698