diff options
author | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 23:43:11 +0000 |
---|---|---|
committer | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 23:43:11 +0000 |
commit | a9602de83c13669096f15e07e3f613461c58afbc (patch) | |
tree | 5a0f434b63ef6311b309ec2ca796c58374add0bc /chrome/test/data | |
parent | 9d3bd0e747adae3c4caf9ddccf8e08a4de68e3bc (diff) | |
download | chromium_src-a9602de83c13669096f15e07e3f613461c58afbc.zip chromium_src-a9602de83c13669096f15e07e3f613461c58afbc.tar.gz chromium_src-a9602de83c13669096f15e07e3f613461c58afbc.tar.bz2 |
Add support for interacting with the DOM in browser_tests.
BUG=none
TEST=none
Reivew url: http://codereview.chromium.org/660046
Review URL: http://codereview.chromium.org/1051005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42026 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data')
8 files changed, 95 insertions, 0 deletions
diff --git a/chrome/test/data/dom_automation/events/test.html b/chrome/test/data/dom_automation/events/test.html new file mode 100644 index 0000000..022a3a0 --- /dev/null +++ b/chrome/test/data/dom_automation/events/test.html @@ -0,0 +1,19 @@ +<html> +<script> +function renameLink() { + document.links[0].innerHTML = "clicked"; +} +function changeTextfield() { + document.getElementById("textfield").value = "clicked"; +} +</script> +<body> +<a href="javascript:renameLink();">link</a> +<textarea>textarea</textarea> +<form action=""> + <input id="textfield" type='text' value='textfield'></input> + <input id="button" type='button' value='button' onclick="changeTextfield()"> + </input> +</form> +</body> +</html> diff --git a/chrome/test/data/dom_automation/find_elements/test.html b/chrome/test/data/dom_automation/find_elements/test.html new file mode 100644 index 0000000..858677d --- /dev/null +++ b/chrome/test/data/dom_automation/find_elements/test.html @@ -0,0 +1,36 @@ +<html> +<head> +</head> + +<div class="myclass" name="0">div_text</div> +<div class="myclass" name="1">div_text</div> + +35957 +<span name="span">span_text + <span name="spanspan">span_text + <span name="spanspanspan">span_text + </span> + </span> +</span> + +<table border=1> + <tr style="display:none"> + <td>table_text</td> + </tr> + <tr> + <td style="visibility:collapse"> + table_text + </td> + <td style="visibility:hidden"> + table_text + </td> + <td name="shown"> + table_text + </td> + </tr> +</table> + +<textarea >textarea_text</textarea> +<input type="text" value="input_text"></input> + +</html> diff --git a/chrome/test/data/dom_automation/frames/frame1.html b/chrome/test/data/dom_automation/frames/frame1.html new file mode 100644 index 0000000..4e02aab --- /dev/null +++ b/chrome/test/data/dom_automation/frames/frame1.html @@ -0,0 +1,6 @@ +<html> +<body> +<iframe src="iframe1.html"></iframe> +<div>frame 1</div> +</body> +</html> diff --git a/chrome/test/data/dom_automation/frames/frame2.html b/chrome/test/data/dom_automation/frames/frame2.html new file mode 100644 index 0000000..d1e8bdf --- /dev/null +++ b/chrome/test/data/dom_automation/frames/frame2.html @@ -0,0 +1,6 @@ +<html> +<body> +<iframe src="iframe2.html"></iframe> +<div>frame 2</div> +</body> +</html> diff --git a/chrome/test/data/dom_automation/frames/iframe1.html b/chrome/test/data/dom_automation/frames/iframe1.html new file mode 100644 index 0000000..7fccbfd --- /dev/null +++ b/chrome/test/data/dom_automation/frames/iframe1.html @@ -0,0 +1,5 @@ +<html> +<body> +<div>iframe 1</div> +</body> +</html> diff --git a/chrome/test/data/dom_automation/frames/iframe2.html b/chrome/test/data/dom_automation/frames/iframe2.html new file mode 100644 index 0000000..908303e --- /dev/null +++ b/chrome/test/data/dom_automation/frames/iframe2.html @@ -0,0 +1,5 @@ +<html> +<body> +<div>iframe 2</div> +</body> +</html> diff --git a/chrome/test/data/dom_automation/frames/test.html b/chrome/test/data/dom_automation/frames/test.html new file mode 100644 index 0000000..004c3e9 --- /dev/null +++ b/chrome/test/data/dom_automation/frames/test.html @@ -0,0 +1,12 @@ +<html> +<head> +<script> + +</script> +</head> + +<frameset id="set" cols="25%,75%"> +<frame src="frame1.html"> +<frame src="frame2.html"> +</frameset> +</html> diff --git a/chrome/test/data/dom_automation/string_escape/test.html b/chrome/test/data/dom_automation/string_escape/test.html new file mode 100644 index 0000000..6ffea56 --- /dev/null +++ b/chrome/test/data/dom_automation/string_escape/test.html @@ -0,0 +1,6 @@ +<html> +<head> +<meta http-equiv="content-type" content="charset=UTF-8"> +</head> +<textarea>ÿ</textarea> +</html> |