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

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: Fixed performance memory tests and 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..05b61ed62242c3b1547e969a743b90f477999fb3 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,25 @@
<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);
+ // http://crbug.com/43394
+ 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