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

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

Issue 451663003: [SVG2] Harmonize the IDLs of SVGStyleElement and HTMLStyleElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixup test Created 6 years, 4 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
« no previous file with comments | « no previous file | Source/core/svg/SVGStyleElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/svg/SVGStyleElement.html
diff --git a/LayoutTests/fast/svg/SVGStyleElement.html b/LayoutTests/fast/svg/SVGStyleElement.html
new file mode 100644
index 0000000000000000000000000000000000000000..30e6ae53d5061e44020c9b57d565c0744d3da0d4
--- /dev/null
+++ b/LayoutTests/fast/svg/SVGStyleElement.html
@@ -0,0 +1,31 @@
+<!doctype html>
+<title>SVGStyleElement tests</title>
+<script src=../../resources/testharness.js></script>
+<script src=../../resources/testharnessreport.js></script>
+<div id="testcontainer">
+<svg width="1" height="1" visibility="hidden">
+<defs><style>.test { fill: green; }</style></defs>
+</svg>
+</div>
+<div id=log></div>
+<script>
+var svg = document.querySelector("svg"),
+ style = document.querySelector("style");
+
+test(function() {
+ assert_exists(style, "sheet", "");
+}, "SVGStyleElement implements LinkStyle");
+
+test(function() {
+ assert_equals(document.styleSheets[0], style.sheet);
+}, "document.styleSheets contains style.sheet");
+
+test(function() {
+ assert_equals(document.styleSheets[0].ownerNode, style);
+}, "sheet has correct ownerNode #1");
+
+test(function() {
+ assert_equals(style.sheet.ownerNode, style);
+}, "sheet has correct ownerNode #2");
+
+</script>
« no previous file with comments | « no previous file | Source/core/svg/SVGStyleElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698