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

Side by Side Diff: tests/html/serialized_script_value_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/selectelement_test.dart ('k') | tests/html/shadow_dom_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 library SerializedScriptValueTest; 1 library SerializedScriptValueTest;
2 import '../../pkg/unittest/lib/unittest.dart'; 2 import 'package:unittest/unittest.dart';
3 import '../../pkg/unittest/lib/html_config.dart'; 3 import 'package:unittest/html_config.dart';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'utils.dart'; 5 import 'utils.dart';
6 6
7 serializationTest(name, value) => test(name, () { 7 serializationTest(name, value) => test(name, () {
8 // To check how value is serialized and deserialized, we create a 8 // To check how value is serialized and deserialized, we create a
9 // MessageEvent. 9 // MessageEvent.
10 final event = 10 final event =
11 new MessageEvent('', data: value, origin: '', lastEventId: ''); 11 new MessageEvent('', data: value, origin: '', lastEventId: '');
12 verifyGraph(value, event.data); 12 verifyGraph(value, event.data);
13 }); 13 });
(...skipping 29 matching lines...) Expand all
43 ['Indescribable... Indestructible! Nothing can stop it!'], 43 ['Indescribable... Indestructible! Nothing can stop it!'],
44 'text/plain'); 44 'text/plain');
45 serializationTest('blob', [blob]); 45 serializationTest('blob', [blob]);
46 46
47 var canvas = new CanvasElement(); 47 var canvas = new CanvasElement();
48 canvas.width = 100; 48 canvas.width = 100;
49 canvas.height = 100; 49 canvas.height = 100;
50 var imageData = canvas.context2D.getImageData(0, 0, 1, 1); 50 var imageData = canvas.context2D.getImageData(0, 0, 1, 1);
51 serializationTest('imagedata', [imageData]); 51 serializationTest('imagedata', [imageData]);
52 } 52 }
OLDNEW
« no previous file with comments | « tests/html/selectelement_test.dart ('k') | tests/html/shadow_dom_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698