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

Unified Diff: tests/html/postmessage_structured_test.dart

Issue 296153013: Fixing iframe.contentWindow.postMessage passing incorrect data (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/src/dart2js_DOMImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/postmessage_structured_test.dart
diff --git a/tests/html/postmessage_structured_test.dart b/tests/html/postmessage_structured_test.dart
index 9ceeebca3a174b57f69dfff587e67493709b2742..1dc65d7549d6e29dac2caef33d5f93866e9a564a 100644
--- a/tests/html/postmessage_structured_test.dart
+++ b/tests/html/postmessage_structured_test.dart
@@ -149,4 +149,17 @@ main() {
go('typed_arrays_list', typed_arrays_list);
});
+ group('iframe', () {
+ test('postMessage clones data', () {
+ var iframe = new IFrameElement();
+ var future = iframe.onLoad.first.then((_) {
+ iframe.contentWindow.postMessage(new HashMap<String,num>(), '*');
+ });
+ iframe.src = 'about:blank';
+ document.body.append(iframe);
+
+ return future;
+ });
+ });
+
}
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/src/dart2js_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698