diff options
author | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-16 16:34:15 +0000 |
---|---|---|
committer | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-16 16:34:15 +0000 |
commit | f18744fd5ec25ee780633e039a9f53d2cce3b49c (patch) | |
tree | 4d81c829dbf6e1710f546277a7907f5c0a928937 /chrome/test/data/dom_automation | |
parent | 966ddf0958e0e3eb3a145c5a9908bc8662e174be (diff) | |
download | chromium_src-f18744fd5ec25ee780633e039a9f53d2cce3b49c.zip chromium_src-f18744fd5ec25ee780633e039a9f53d2cce3b49c.tar.gz chromium_src-f18744fd5ec25ee780633e039a9f53d2cce3b49c.tar.bz2 |
Add ability to manipulate DOM elements from the automation proxy. Rework the way that javascript is packaged and parsed in the JavascriptExecutionController, and add some waiting methods.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1632001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/dom_automation')
-rw-r--r-- | chrome/test/data/dom_automation/wait/test.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/test/data/dom_automation/wait/test.html b/chrome/test/data/dom_automation/wait/test.html new file mode 100644 index 0000000..2a7941a --- /dev/null +++ b/chrome/test/data/dom_automation/wait/test.html @@ -0,0 +1,21 @@ +<html> +<script> +window.onload = function() { + window.setTimeout(function() { + document.getElementById("anchor").href = "http://www.google.com"; + }, 2000); + + window.setTimeout(function() { + var div = document.createElement("div"); + div.innerHTML = "div_inner"; + document.body.appendChild(div); + }, 2000); + + window.setTimeout(function() { + document.body.removeChild(document.querySelector("img")); + }, 2000); +} +</script> +<a id="anchor"></a> +<img width=100 height=100> +</html> |