summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/dom_automation
diff options
context:
space:
mode:
authorkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-16 16:34:15 +0000
committerkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-16 16:34:15 +0000
commitf18744fd5ec25ee780633e039a9f53d2cce3b49c (patch)
tree4d81c829dbf6e1710f546277a7907f5c0a928937 /chrome/test/data/dom_automation
parent966ddf0958e0e3eb3a145c5a9908bc8662e174be (diff)
downloadchromium_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.html21
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>