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

Unified Diff: sky/tests/services/event-sender.sky

Issue 928393003: Remove the concept of document.documentElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « sky/tests/modules/load-event.sky ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/services/event-sender.sky
diff --git a/sky/tests/services/event-sender.sky b/sky/tests/services/event-sender.sky
index 2c346b4f012c961723f7ce0af24973375e394e08..b72ab9c1aad231d1f5110e4c353755b2a59d0592 100644
--- a/sky/tests/services/event-sender.sky
+++ b/sky/tests/services/event-sender.sky
@@ -13,8 +13,7 @@ void main() {
initUnit();
test('should be able to send events', () {
- var sky = document.querySelector('sky');
- sky.addEventListener('keypress', expectAsync((event) {
+ document.addEventListener('keypress', expectAsync((event) {
expect(event.type, equals('keypress'));
expect(event.key, equals(0));
expect(event.charCode, equals(0x41));
« no previous file with comments | « sky/tests/modules/load-event.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698