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

Unified Diff: pkg/analyzer/test/src/context/mock_sdk.dart

Issue 2656673003: Fix for dart:html query() type inference. (Closed)
Patch Set: Created 3 years, 11 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/analyzer/test/generated/resolver_driver_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/context/mock_sdk.dart
diff --git a/pkg/analyzer/test/src/context/mock_sdk.dart b/pkg/analyzer/test/src/context/mock_sdk.dart
index ef800f939e26a56a57e8db5b2c6beae3e1a4748e..4b15a90e710031b7eecdd7d38b9ae4d7b952db87 100644
--- a/pkg/analyzer/test/src/context/mock_sdk.dart
+++ b/pkg/analyzer/test/src/context/mock_sdk.dart
@@ -333,9 +333,25 @@ const _MockSdkLibrary _LIB_HTML_DARTIUM = const _MockSdkLibrary(
'dart:html',
'$sdkRoot/lib/html/dartium/html_dartium.dart',
'''
-library dart.html;
+library dart.dom.html;
+
+final HtmlDocument document;
+
+abstract class Element {}
+
+abstract class HtmlDocument {
+ Element query(String relativeSelectors) => null;
+}
+
+abstract class HtmlElement extends Element {}
+
+abstract class AnchorElement extends HtmlElement {}
+abstract class BodyElement extends HtmlElement {}
+abstract class ButtonElement extends HtmlElement {}
+abstract class DivElement extends HtmlElement {}
+abstract class InputElement extends HtmlElement {}
+abstract class SelectElement extends HtmlElement {}
-abstract class HtmlElement {}
abstract class CanvasElement extends HtmlElement {
Object getContext(String contextId, [Map attributes]);
@@ -343,6 +359,8 @@ abstract class CanvasElement extends HtmlElement {
}
abstract class class CanvasRenderingContext2D {}
+
+Element query(String relativeSelectors) => null;
''');
const _MockSdkLibrary _LIB_INTERCEPTORS = const _MockSdkLibrary(
« no previous file with comments | « pkg/analyzer/test/generated/resolver_driver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698