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

Unified Diff: tests/html/serialized_script_value_test.dart

Issue 21303002: Adding additional tests for serialized script value conversions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/html/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/serialized_script_value_test.dart
diff --git a/tests/html/serialized_script_value_test.dart b/tests/html/serialized_script_value_test.dart
index afbf04cb9ed6f3b9aba2baf0c462862b717c7744..280dce3cb7ddb1d9acc4b00abbdd66f3696588fa 100644
--- a/tests/html/serialized_script_value_test.dart
+++ b/tests/html/serialized_script_value_test.dart
@@ -36,4 +36,21 @@ main() {
serializationTest('simple list', simpleList);
serializationTest('dag list', dagList);
serializationTest('cyclic list', cyclicList);
+
+ serializationTest('datetime', [new DateTime.now()]);
+
+ var blob = new Blob(
+ ['Indescribable... Indestructible! Nothing can stop it!'],
+ 'text/plain');
+ serializationTest('blob', [blob]);
+
+ var canvas = new CanvasElement();
+ canvas.width = 100;
+ canvas.height = 100;
+ var imageData = canvas.context2D.getImageData(0, 0, 1, 1);
+ serializationTest('imagedata', [imageData]);
+
+ expect(() {
+ new MessageEvent('', data: new DivElement(), origin: '', lastEventId: '');
+ }, throws);
}
« no previous file with comments | « no previous file | tests/html/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698