| Index: chrome/test/wtflib/test.html
|
| ===================================================================
|
| --- chrome/test/wtflib/test.html (revision 0)
|
| +++ chrome/test/wtflib/test.html (revision 0)
|
| @@ -0,0 +1,59 @@
|
| +<!--
|
| +Copyright 2009 Google Inc.
|
| +
|
| +Licensed under the Apache License, Version 2.0 (the "License");
|
| +you may not use this file except in compliance with the License.
|
| +You may obtain a copy of the License at
|
| +
|
| + http://www.apache.org/licenses/LICENSE-2.0
|
| +
|
| +Unless required by applicable law or agreed to in writing, software
|
| +distributed under the License is distributed on an "AS IS" BASIS,
|
| +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| +See the License for the specific language governing permissions and
|
| +limitations under the License.
|
| +
|
| +
|
| +This file demonstrates how to use the generated Complex plug-in.
|
| +-->
|
| +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
| + "http://www.w3.org/TR/html4/loose.dtd">
|
| +<html>
|
| +<head>
|
| +<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
| +<title>
|
| +WTF sample.
|
| +</title>
|
| +<script>
|
| +
|
| +/**
|
| + * Logs text into the <pre> tag.
|
| + */
|
| +function log(text) {
|
| + var div = document.getElementById('output');
|
| + div.innerHTML += text + '\n';
|
| +}
|
| +
|
| +function init() {
|
| + window.alert('hello');
|
| + log("getting plugin");
|
| + var plugin = document.getElementById('plugin');
|
| + var wtf = plugin.WTF();
|
| +
|
| + window.alert('Initializing.');
|
| + log("Initialize");
|
| + wtf.Initialize("/usr/local/google/home/jcarollo/chrome4/src/out/Debug");
|
| + window.alert('Initialized.');
|
| + log("NavigateToURL");
|
| + wtf.NavigateToURL("http://www.test.com");
|
| + log("Done");
|
| +}
|
| +
|
| +</script>
|
| +</head>
|
| +<body>
|
| +<pre id='output'></pre>
|
| +<object type='application/wtf' id='plugin' width='0' height='0'> </object>
|
| +<input type='button' value='Init' id='init_button' onclick='init();'/>
|
| +</body>
|
| +</html>
|
|
|
| Property changes on: chrome/test/wtflib/test.html
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|