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

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

Issue 21385004: Removing test for exceptions being thrown from MessageEvent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 library SerializedScriptValueTest; 1 library SerializedScriptValueTest;
2 import '../../pkg/unittest/lib/unittest.dart'; 2 import '../../pkg/unittest/lib/unittest.dart';
3 import '../../pkg/unittest/lib/html_config.dart'; 3 import '../../pkg/unittest/lib/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 =
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 var blob = new Blob( 42 var blob = new Blob(
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
53 expect(() {
54 new MessageEvent('', data: new DivElement(), origin: '', lastEventId: '');
55 }, throws);
56 } 52 }
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