Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr.html b/third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4db07a82cd5a88b31e7e7763f367a5f865f09f9f |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/frames/script-modify-iframe-attr.html |
| @@ -0,0 +1,22 @@ |
| +<!DOCTYPE html> |
| + |
| +<script> |
| +function modify_attr() { |
| + var ifr = document.getElementById('ifr'); |
| + ifr.scrolling = 'no'; |
| + ifr.marginWidth = '50'; |
| + ifr.marginHeight = '100'; |
| + testRunner.notifyDone(); |
| +} |
| +</script> |
| + |
| +<iframe id="ifr" onload="modify_attr();" scrolling="yes" |
|
bokan
2016/11/18 20:56:18
I believe this will fire when the iframe is loaded
|
| + style="width:200px;height:200px;" |
| + src="http://127.0.0.1:8000/fast/frames/resources/big-page.html"> |
| +</iframe> |
| + |
| +<script src="/resources/testharness.js"></script> |
| +<script src="/resources/testharnessreport.js"></script> |
|
bokan
2016/11/18 20:56:18
I don't think this test makes any use of testharne
|
| +<script> |
| +testRunner.waitUntilDone(); |
| +</script> |