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

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

Issue 8468017: Fix a small race condition in loading/executing the PPAPI tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 document.getElementById("console").innerHTML = 151 document.getElementById("console").innerHTML =
152 '<span class="fail">FAIL</span>: ' + 152 '<span class="fail">FAIL</span>: ' +
153 '<span class="err_msg">Test plug-in is not registered.</span>'; 153 '<span class="err_msg">Test plug-in is not registered.</span>';
154 } 154 }
155 } 155 }
156 if (obj) { 156 if (obj) {
157 obj.setAttribute("id", "plugin"); 157 obj.setAttribute("id", "plugin");
158 obj.setAttribute("testcase", testcase); 158 obj.setAttribute("testcase", testcase);
159 obj.setAttribute("protocol", window.location.protocol); 159 obj.setAttribute("protocol", window.location.protocol);
160 var container = document.getElementById("container"); 160 var container = document.getElementById("container");
161 container.addEventListener("message", handleTestingMessage, true);
161 container.appendChild(obj); 162 container.appendChild(obj);
162 container.addEventListener("message", handleTestingMessage, true);
163 } 163 }
164 } 164 }
165 </script> 165 </script>
166 </head><body> 166 </head><body>
167 <div> 167 <div>
168 <div id="container"></div> 168 <div id="container"></div>
169 <div id="console" /><span class="load_msg">loading...</span></div> 169 <div id="console" /><span class="load_msg">loading...</span></div>
170 </div> 170 </div>
171 </body></html> 171 </body></html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698