Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: LayoutTests/fast/svg/SVGStyleElement.html

Issue 821303006: bindings: Fixes layouttests when moving attributes to prototype chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed review comments. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698