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

Side by Side Diff: LayoutTests/screen_orientation/screenorientation-api.html

Issue 241203003: Screen Orientation: fire event on Window instead of Screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@ScreenOrientationUndefined
Patch Set: fix tests Created 6 years, 8 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 <script> 5 <script>
6 description("Validates the Screen Orientation API is exposed."); 6 description("Validates the Screen Orientation API is exposed.");
7 7
8 shouldBeDefined("screen.lockOrientation"); 8 shouldBeDefined("screen.lockOrientation");
9 shouldBeDefined("screen.unlockOrientation"); 9 shouldBeDefined("screen.unlockOrientation");
10 shouldBeDefined("screen.orientation"); 10 shouldBeDefined("screen.orientation");
11 shouldBeDefined("screen.onorientationchange"); 11 shouldBeDefined("window.onorientationchange");
12 // Screen should be an EventTarget
13 shouldBe("screen.__proto__.__proto__", "EventTarget.prototype");
14 shouldBeDefined("screen.addEventListener");
15 shouldBeDefined("screen.removeEventListener");
16 shouldBeDefined("screen.dispatchEvent");
17 </script> 12 </script>
18 </body> 13 </body>
19 </html> 14 </html>
20 15
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698