Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html b/third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f35d4fdb6697eff11ce4fd3c58e2e46886724185 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html |
| @@ -0,0 +1,23 @@ |
| +<!DOCTYPE html> |
| + |
| +<script> |
| +window.addEventListener("message", (event) => { |
| + var ifr = document.getElementById('ifr'); |
| + ifr.scrolling = 'no'; |
| + ifr.marginWidth = '50'; |
| + ifr.marginHeight = '100'; |
| + if (testRunner) |
| + testRunner.notifyDone(); |
| +}); |
| + |
| +window.onload = () => { |
| + if (testRunner) |
| + testRunner.waitUntilDone(); |
| + var ifr = document.getElementById('ifr'); |
| + ifr.contentWindow.postMessage({}, '*'); |
|
alexmos
2016/11/22 05:13:11
I think the scrolling/margin attributes should be
|
| +}; |
| +</script> |
| + |
| +<iframe id="ifr" scrolling="yes" style="width:200px;height:200px;" |
| + src="http://localhost:8000/frames/resources/subframe.html"> |
| +</iframe> |