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

Side by Side Diff: ppapi/tests/test_case.html

Issue 7826017: Add PPB_Fullscreen;0.5. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
1 <html><head> 1 <html><head>
2 <meta http-equiv="Pragma" content="no-cache" /> 2 <meta http-equiv="Pragma" content="no-cache" />
3 <meta http-equiv="Expires" content="-1" /> 3 <meta http-equiv="Expires" content="-1" />
4 <link rel="stylesheet" href="test_page.css"> 4 <link rel="stylesheet" href="test_page.css">
5 <script> 5 <script>
6 function AdjustHeight(frameWin) { 6 function AdjustHeight(frameWin) {
7 var div = frameWin.document.getElementsByTagName("div")[0]; 7 var div = frameWin.document.getElementsByTagName("div")[0];
8 var height = frameWin.getComputedStyle(div).height; 8 var height = frameWin.getComputedStyle(div).height;
9 frameWin.frameElement.style.height = height; 9 frameWin.frameElement.style.height = height;
10 } 10 }
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 obj = document.createElement("EMBED"); 136 obj = document.createElement("EMBED");
137 obj.setAttribute("src", "test_case.nmf"); 137 obj.setAttribute("src", "test_case.nmf");
138 obj.setAttribute("type", "application/x-nacl"); 138 obj.setAttribute("type", "application/x-nacl");
139 obj.setAttribute("mode", mode); 139 obj.setAttribute("mode", mode);
140 } else { 140 } else {
141 var mimeType = "application/x-ppapi-tests"; 141 var mimeType = "application/x-ppapi-tests";
142 if (mimeType in navigator.mimeTypes) { 142 if (mimeType in navigator.mimeTypes) {
143 obj = document.createElement("EMBED"); 143 obj = document.createElement("EMBED");
144 obj.setAttribute("src", "http://a.b.c/test"); 144 obj.setAttribute("src", "http://a.b.c/test");
145 obj.setAttribute("type", mimeType); 145 obj.setAttribute("type", mimeType);
146 obj.setAttribute("width", 80);
147 obj.setAttribute("height", 80);
148 obj.setAttribute("style",
149 "background-color:#AAAAAA;border:1px solid black;");
146 } else { 150 } else {
147 document.getElementById("console").innerHTML = 151 document.getElementById("console").innerHTML =
148 '<span class="fail">FAIL</span>: ' + 152 '<span class="fail">FAIL</span>: ' +
149 '<span class="err_msg">Test plug-in is not registered.</span>'; 153 '<span class="err_msg">Test plug-in is not registered.</span>';
150 } 154 }
151 } 155 }
152 if (obj) { 156 if (obj) {
153 obj.setAttribute("id", "plugin"); 157 obj.setAttribute("id", "plugin");
154 obj.setAttribute("testcase", testcase); 158 obj.setAttribute("testcase", testcase);
155 obj.setAttribute("protocol", window.location.protocol); 159 obj.setAttribute("protocol", window.location.protocol);
156 var container = document.getElementById("container"); 160 var container = document.getElementById("container");
157 container.appendChild(obj); 161 container.appendChild(obj);
158 container.addEventListener("message", handleTestingMessage, true); 162 container.addEventListener("message", handleTestingMessage, true);
159 } 163 }
160 } 164 }
161 </script> 165 </script>
162 </head><body> 166 </head><body>
163 <div> 167 <div>
164 <div id="container"></div> 168 <div id="container"></div>
165 <div id="console" /><span class="load_msg">loading...</span></div> 169 <div id="console" /><span class="load_msg">loading...</span></div>
166 </div> 170 </div>
167 </body></html> 171 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698