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

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

Issue 136953005: Fix html/js test on Dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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) 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;
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 context['obj'] = obj; 288 context['obj'] = obj;
289 expect(context['obj'], same(obj)); 289 expect(context['obj'], same(obj));
290 context.deleteProperty('obj'); 290 context.deleteProperty('obj');
291 }); 291 });
292 292
293 group('caching', () { 293 group('caching', () {
294 test('JS->Dart', () { 294 test('JS->Dart', () {
295 // Test that we are not pulling cached proxy from the prototype 295 // Test that we are not pulling cached proxy from the prototype
296 // when asking for a proxy for the object. 296 // when asking for a proxy for the object.
297 final proto = context['someProto']; 297 final proto = context['someProto'];
298 expect(proto['role'], same('proto')); 298 expect(proto['role'], equals('proto'));
299 final obj = context['someObject']; 299 final obj = context['someObject'];
300 expect(obj['role'], same('object')); 300 expect(obj['role'], equals('object'));
301 }); 301 });
302 }); 302 });
303 303
304 }); 304 });
305 305
306 group('context', () { 306 group('context', () {
307 307
308 test('read global field', () { 308 test('read global field', () {
309 expect(context['x'], equals(42)); 309 expect(context['x'], equals(42));
310 expect(context['y'], isNull); 310 expect(context['y'], isNull);
(...skipping 694 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 | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698