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

Unified Diff: pkg/element_created/test/unittest.js

Issue 184033007: Prototype of Dart proxies for JS objects. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More tests. Created 6 years, 10 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 | « pkg/element_created/test/index.html ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/element_created/test/unittest.js
diff --git a/pkg/element_created/test/unittest.js b/pkg/element_created/test/unittest.js
new file mode 100644
index 0000000000000000000000000000000000000000..aa7b2f7e7ecc441aebc514bd24c2f895c401eb74
--- /dev/null
+++ b/pkg/element_created/test/unittest.js
@@ -0,0 +1,10 @@
+function test(name, fn) {
+ window.console.log('running ' + name);
+ fn();
+}
+
+function expect(actual, expected) {
+ if (actual != expected) {
+ throw new Error('Expected: ' + expected + ' actual: ' + actual);
+ }
+}
« no previous file with comments | « pkg/element_created/test/index.html ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698