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

Side by Side Diff: webkit/data/plugin_tests/npapi.js

Issue 42687: Add a test to test_shell_tests to verify that navigator.plugins.refresh() wor... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
« no previous file with comments | « no previous file | webkit/data/plugin_tests/verify_plugin_window_rect.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 //
2 // This script provides some mechanics for testing NPAPI
3 //
4
5 /* public */ function onSuccess(name, id)
6 {
7 setTimeout(onFinished, 0, name, id, "OK");
8 }
9
10 /* public */ function onFailure(name, id, status)
11 {
12 setTimeout(onFinished, 0, name, id, status);
13 }
14
15
16
17 // Finish running a test by setting the status
18 // and the cookie.
19 /* private */ function onFinished(name, id, result)
20 {
21 var statusPanel = document.getElementById("statusPanel");
22 if (statusPanel) {
23 statusPanel.innerHTML = result;
24 }
25
26 var cookie = name + "." + id + ".status=" + result + "; path=/";
27 document.cookie = cookie;
28 }
OLDNEW
« no previous file with comments | « no previous file | webkit/data/plugin_tests/verify_plugin_window_rect.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698