Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/svg/as-object/svg-object-contentWindow-query.html |
| diff --git a/third_party/WebKit/LayoutTests/svg/as-object/svg-object-contentWindow-query.html b/third_party/WebKit/LayoutTests/svg/as-object/svg-object-contentWindow-query.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bba00f0937f6d10f2e2537d9d1aef33990ae6190 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/svg/as-object/svg-object-contentWindow-query.html |
| @@ -0,0 +1,18 @@ |
| +<!DOCTYPE html> |
|
fs
2016/06/22 08:33:02
There's some overlap with imported/wpt/html/semant
Shanmuga Pandi
2016/06/22 10:27:32
Done.
|
| +<meta charset="utf-8"> |
|
foolip
2016/06/22 09:37:04
Don't need the charset if the file is entirely US-
Shanmuga Pandi
2016/06/22 10:27:32
Done.
|
| +<title>Test</title> |
|
fs
2016/06/22 08:33:02
Use a title that says something useful. Maybe "HTM
Shanmuga Pandi
2016/06/22 10:27:32
Done.
|
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| +<body onload="onLoad()"> |
|
fs
2016/06/22 08:33:02
Could drop the <body> and just use "window.onload
foolip
2016/06/22 09:37:04
Yep, it can be window.onload = t.step_func_done(fu
Shanmuga Pandi
2016/06/22 10:27:32
Done.
|
| +<object id="obj" type="image/svg+xml" data="resources/svg-object-contentWindow.svg"></object> |
|
foolip
2016/06/22 09:37:04
You can probably drop all the attributes except da
|
| +<script> |
| + var t1 = async_test("Test content window"); |
|
foolip
2016/06/22 09:37:04
There's just one test here. In any case, the struc
Shanmuga Pandi
2016/06/22 10:27:32
Done.
|
| + function onLoad () { |
| + t1.step(function() { |
| + var contentWindow = document.getElementById('obj').contentWindow; |
| + assert_equals(contentWindow.attrInContentWindow, "validAttr", "content window and attributes should be accessible"); |
| + }); |
| + t1.done() |
| + } |
| +</script> |
| +</body> |