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

Unified Diff: test/codegen/domtest.dart

Issue 1145833004: fixes #173, ability to use native JS indexers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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
Index: test/codegen/domtest.dart
diff --git a/test/codegen/domtest.dart b/test/codegen/domtest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..367ffe4dd570365246316c62ab542a557e7702b9
--- /dev/null
+++ b/test/codegen/domtest.dart
@@ -0,0 +1,16 @@
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
+// 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 domtest;
+
+import 'sunflower/dom.dart';
+
+// https://github.com/dart-lang/dev_compiler/issues/173
+testNativeIndexers() {
+ var nodes = document.querySelector('body').childNodes;
+ for (int i = 0; i < nodes.length; i++) {
+ print(nodes[i]);
+ print(nodes[i] = null);
Jacob 2015/05/20 19:55:21 nodes[i] = null is a bit odd as it won't do anythi
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698