From f51b2a93b177914289d4b08fa77841c5b393eb32 Mon Sep 17 00:00:00 2001
From: Kevin Moore <kevmoo@users.noreply.github.com>
Date: Mon, 9 Apr 2018 22:14:54 -0700
Subject: [PATCH] =?UTF-8?q?Stop=20using=20document.query=20in=20tests=20?=
 =?UTF-8?q?=E2=80=93=C2=A0use=20document.querySelector=20(#803)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fixes https://github.com/dart-lang/test/issues/800
---
 test/runner/browser/runner_test.dart | 4 ++--
 test/runner/pub_serve_test.dart      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/runner/browser/runner_test.dart b/test/runner/browser/runner_test.dart
index 2846bff5..97e87cab 100644
--- a/test/runner/browser/runner_test.dart
+++ b/test/runner/browser/runner_test.dart
@@ -281,7 +281,7 @@ import 'package:test/test.dart';
 
 void main() {
   test("success", () {
-    expect(document.query('#foo'), isNotNull);
+    expect(document.querySelector('#foo'), isNotNull);
   });
 }
 """).create();
@@ -382,7 +382,7 @@ import 'package:test/test.dart';
 
 void main() {
   test("failure", () {
-    expect(document.query('#foo'), isNull);
+    expect(document.querySelector('#foo'), isNull);
   });
 }
 """).create();
diff --git a/test/runner/pub_serve_test.dart b/test/runner/pub_serve_test.dart
index 84ab5c9c..4915db46 100644
--- a/test/runner/pub_serve_test.dart
+++ b/test/runner/pub_serve_test.dart
@@ -225,7 +225,7 @@ import 'package:test/test.dart';
 
 void main() {
   test("failure", () {
-    expect(document.query('#foo'), isNull);
+    expect(document.querySelector('#foo'), isNull);
   });
 }
 """),
-- 
GitLab