Chromium Code Reviews| Index: LayoutTests/fast/svg/SVGStyleElement.html |
| diff --git a/LayoutTests/fast/svg/SVGStyleElement.html b/LayoutTests/fast/svg/SVGStyleElement.html |
| index 30e6ae53d5061e44020c9b57d565c0744d3da0d4..6647dd8df0be340ffe7009484e2d03472a8d091a 100644 |
| --- a/LayoutTests/fast/svg/SVGStyleElement.html |
| +++ b/LayoutTests/fast/svg/SVGStyleElement.html |
| @@ -1,4 +1,4 @@ |
| -<!doctype html> |
| +<!doctype html> |
| <title>SVGStyleElement tests</title> |
| <script src=../../resources/testharness.js></script> |
| <script src=../../resources/testharnessreport.js></script> |
| @@ -10,22 +10,24 @@ |
| <div id=log></div> |
| <script> |
| var svg = document.querySelector("svg"), |
| - style = document.querySelector("style"); |
| + style = document.querySelector("style"); |
| test(function() { |
| - assert_exists(style, "sheet", ""); |
| + // FIXME: This assertion should be replaced with |
| + // assert_idl_attribute(style, "sheet", description); |
|
haraken
2015/01/23 01:41:32
Can we use assert_will_be_idl_attribute?
Yuki
2015/01/23 08:06:20
This is not a test in http/tets/, and I think we s
|
| + assert_true("sheet" in style, ""); |
| }, "SVGStyleElement implements LinkStyle"); |
| test(function() { |
| - assert_equals(document.styleSheets[0], style.sheet); |
| + assert_equals(document.styleSheets[0], style.sheet); |
| }, "document.styleSheets contains style.sheet"); |
| test(function() { |
| - assert_equals(document.styleSheets[0].ownerNode, style); |
| + assert_equals(document.styleSheets[0].ownerNode, style); |
| }, "sheet has correct ownerNode #1"); |
| test(function() { |
| - assert_equals(style.sheet.ownerNode, style); |
| + assert_equals(style.sheet.ownerNode, style); |
| }, "sheet has correct ownerNode #2"); |
| </script> |