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

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

Issue 168763002: Add initial Screen Orientation API support: IDL changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix remaining nits Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/js-test.js"></script>
5 <script>
6 description("Validates the Screen Orientation API is exposed.");
7
8 shouldBeDefined("screen.lockOrientation");
9 shouldBeDefined("screen.unlockOrientation");
10 shouldBeDefined("screen.orientation");
11 shouldBeDefined("screen.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>
18 </body>
19 </html>
20
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698