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

Side by Side Diff: LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-remove-and-add.html

Issue 23101004: Make configurationForViewport match production code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamed configurationForViewport to viewportAsText Created 7 years, 4 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 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapfor um.org/DTD/xhtml-mobile10.dtd"> 2 <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapfor um.org/DTD/xhtml-mobile10.dtd">
3 <head> 3 <head>
4 <!-- 4 <!--
5 Related spec: http://www.w3.org/TR/css-device-adapt/ 5 Related spec: http://www.w3.org/TR/css-device-adapt/
6 6
7 XHTML-MP is used for mobile documents which are assumed to be designed for 7 XHTML-MP is used for mobile documents which are assumed to be designed for
8 handheld devices, hence using the viewport size as the initial containing 8 handheld devices, hence using the viewport size as the initial containing
9 block size, so using XHTML-MP will give the same result as a viewport 9 block size, so using XHTML-MP will give the same result as a viewport
10 meta tag with the following parameters: 10 meta tag with the following parameters:
11 11
12 width=device-width, height=device-height, initial-scale=1 12 width=device-width, height=device-height, initial-scale=1
13 13
14 --> 14 -->
15 <title>Default viewport value changed by XHTML-MP</title> 15 <title>Default viewport value changed by XHTML-MP</title>
16 <script> 16 <script>
17 function test() { 17 function test() {
18 if (window.testRunner) 18 if (window.testRunner)
19 testRunner.dumpAsText(); 19 testRunner.dumpAsText();
20 20
21 if (window.internals) 21 if (window.internals)
22 alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352)); 22 alert(internals.viewportAsText(document, 1, 320, 352));
23 23
24 var originalDoctype = document.doctype; 24 var originalDoctype = document.doctype;
25 document.removeChild(originalDoctype); 25 document.removeChild(originalDoctype);
26 26
27 if (window.internals) 27 if (window.internals)
28 alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352)); 28 alert(internals.viewportAsText(document, 1, 320, 352));
29 29
30 document.insertBefore(originalDoctype, document.firstChild); 30 document.insertBefore(originalDoctype, document.firstChild);
31 31
32 if (window.internals) 32 if (window.internals)
33 alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352)); 33 alert(internals.viewportAsText(document, 1, 320, 352));
34 } 34 }
35 </script> 35 </script>
36 </head> 36 </head>
37 <body onload="test();" /> 37 <body onload="test();" />
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698