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

Unified Diff: test/codegen/sunflower/dom.dart

Issue 1160343003: Revert "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
« no previous file with comments | « test/codegen/expect/sunflower/dom.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/sunflower/dom.dart
diff --git a/test/codegen/sunflower/dom.dart b/test/codegen/sunflower/dom.dart
index fdbe3764b2e1fba2f92e59e04e217c96a39c8fc7..e41c7561f8961bb21dd47998dd585a16ddec6f1e 100644
--- a/test/codegen/sunflower/dom.dart
+++ b/test/codegen/sunflower/dom.dart
@@ -19,10 +19,6 @@ class Overload {
}
const overload = const Overload();
-class JsIndexer {
- const JsIndexer();
-}
-
external Document get document;
@JsName(name: 'Document')
@@ -34,27 +30,10 @@ abstract class Document {
abstract class Element {
void addEventListener(String type, EventListener callback, [bool capture]);
String textContent;
- NodeList get childNodes;
-}
-
-@JsName()
-class Node {}
-
-@JsName()
-@JsIndexer()
-class NodeList {
- external NodeList();
- external num get length;
- external set length(num _);
- external Node item(num index);
-
- external Node operator [](num index);
- external void operator []=(num index, Node);
}
typedef void EventListener(Event e);
-@JsName()
abstract class Event {}
@JsName(name: 'HTMLInputElement')
« no previous file with comments | « test/codegen/expect/sunflower/dom.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698