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

Unified Diff: tests/html/contentelement_test.dart

Issue 10977017: Adding constructor to ContentElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing the test. Created 8 years, 3 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
Index: tests/html/contentelement_test.dart
diff --git a/tests/html/transferables_test.dart b/tests/html/contentelement_test.dart
similarity index 55%
copy from tests/html/transferables_test.dart
copy to tests/html/contentelement_test.dart
index 220852cc25ef0a01d6bd901fc7060ad27e684156..54d9a4fe2f7acd0bfea44b2c12110d33b746f542 100644
--- a/tests/html/transferables_test.dart
+++ b/tests/html/contentelement_test.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#library('TransferableTest');
+#library('contentelement_test');
#import('../../pkg/unittest/unittest.dart');
#import('../../pkg/unittest/html_config.dart');
#import('dart:html');
@@ -10,11 +10,8 @@
main() {
useHtmlConfiguration();
- test('TransferableTest', () {
- window.on.message.add(expectAsync1((messageEvent) {
- expect(messageEvent.data, new isInstanceOf<ArrayBuffer>());
- }));
- final buffer = (new Float32Array(3)).buffer;
- window.postMessage(buffer, '*', [buffer]);
- });
+ test('constructor', () {
+ var e = new ContentElement();
+ Expect.isTrue(e is ContentElement);
Emily Fortuna 2012/09/25 17:39:22 Is there anything our test framework needs to writ
vsm 2012/09/25 17:40:37 Good point. Doesn't this work? expect(e is Conte
blois 2012/09/25 22:19:56 Done.
+ });
}
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | tests/html/html.status » ('j') | tests/html/html.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698