summaryrefslogtreecommitdiffstats
path: root/components/test
diff options
context:
space:
mode:
authorsky <sky@chromium.org>2015-06-29 15:50:16 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-29 22:50:46 +0000
commit89d6be01582ba5dacbcb3c7fdaa7dd54829d757b (patch)
tree7ea49d0405def9261afc3d3e0c620d3faa25acb8 /components/test
parent69475131d1707afa5935dbccd98092f464459bdb (diff)
downloadchromium_src-89d6be01582ba5dacbcb3c7fdaa7dd54829d757b.zip
chromium_src-89d6be01582ba5dacbcb3c7fdaa7dd54829d757b.tar.gz
chromium_src-89d6be01582ba5dacbcb3c7fdaa7dd54829d757b.tar.bz2
Adds a frame based test for html_viewer
I'm making the test code use mandoline/tab as that dramatically simplifies things, and lets me test that code too. I'm also creating a testing interface for HTMLViewer. It's only available if a command line flag is supplied. For now it's simple, but I'm going to add more to it (such as injecting JS). BUG=479172,490221 TEST=mostly test change R=ben@chromium.org Review URL: https://codereview.chromium.org/1210323002 Cr-Commit-Position: refs/heads/master@{#336668}
Diffstat (limited to 'components/test')
-rw-r--r--components/test/data/html_viewer/empty_page.html5
-rw-r--r--components/test/data/html_viewer/page_with_single_frame.html7
2 files changed, 12 insertions, 0 deletions
diff --git a/components/test/data/html_viewer/empty_page.html b/components/test/data/html_viewer/empty_page.html
new file mode 100644
index 0000000..a5786ef
--- /dev/null
+++ b/components/test/data/html_viewer/empty_page.html
@@ -0,0 +1,5 @@
+<html>
+ <body style="background-color: red">
+ child
+ </body>
+</html>
diff --git a/components/test/data/html_viewer/page_with_single_frame.html b/components/test/data/html_viewer/page_with_single_frame.html
new file mode 100644
index 0000000..cbca1f9
--- /dev/null
+++ b/components/test/data/html_viewer/page_with_single_frame.html
@@ -0,0 +1,7 @@
+<html>
+ <body style="background-color: blue">
+ <iframe width="50%" height="50%"
+ src="empty_page.html"></iframe>
+ Page with single frame
+ </body>
+</html>