| Index: ppapi/tests/test_case.html
|
| ===================================================================
|
| --- ppapi/tests/test_case.html (revision 114869)
|
| +++ ppapi/tests/test_case.html (working copy)
|
| @@ -78,6 +78,7 @@
|
| // - DidExecuteTests
|
| // - LogHTML
|
| // - SetCookie
|
| +// - ExecuteScript
|
| // The second item is the verbatim message_contents.
|
| function ParseTestingMessage(message_data) {
|
| if (typeof(message_data)!='string')
|
| @@ -107,6 +108,13 @@
|
| window.document.cookie = key_value_string + "; path=/";
|
| }
|
|
|
| +function ExecuteScript(script) {
|
| + try {
|
| + eval(script);
|
| + } catch(ex) {
|
| + }
|
| +}
|
| +
|
| function IsTestingMessage(message_data) {
|
| return (ParseTestingMessage(message_data) != undefined);
|
| }
|
| @@ -124,6 +132,8 @@
|
| LogHTML(contents);
|
| else if (type === "SetCookie")
|
| SetCookie(contents);
|
| + else if (type === "ExecuteScript")
|
| + ExecuteScript(contents);
|
| }
|
| }
|
|
|
|
|