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

Side by Side Diff: LayoutTests/fast/media/viewport-in-standalone-media-document.html

Issue 18034007: Add viewport settings for ImageDocument and MediaDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: LayoutTests Created 7 years, 5 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../media/media-file.js"></script>
5 <script src="../../media/video-test.js"></script>
6 <script>
7 var metaElement;
8 var standaloneMediaDocument;
9 var skipOnFirstEmptyLoad = 0;
10
11 function frameLoaded()
12 {
13 if (++skipOnFirstEmptyLoad == 1)
14 return;
15
16 standaloneMediaDocument = document.getElementById("videoframe"). contentDocument;
17 metaElement = standaloneMediaDocument.querySelector("meta");
18
19 testExpected("metaElement.name", "viewport");
20 testExpected("metaElement.content", "width=device-width");
21
22 endTest();
23 }
24 </script>
25 </head>
26 <body>
27 <p>
28 This tests that a standalone media document has viewport settings.
29 </p>
30 <iframe id="videoframe" onload="frameLoaded()"></iframe>
31 <script>
32 document.getElementById("videoframe").src = "../../media/" + findMed iaFile("video", "content/test");
33 </script>
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698