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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <title>SVGStyleElement tests</title> 2 <title>SVGStyleElement tests</title>
3 <script src=../../resources/testharness.js></script> 3 <script src=../../resources/testharness.js></script>
4 <script src=../../resources/testharnessreport.js></script> 4 <script src=../../resources/testharnessreport.js></script>
5 <div id="testcontainer"> 5 <div id="testcontainer">
6 <svg width="1" height="1" visibility="hidden"> 6 <svg width="1" height="1" visibility="hidden">
7 <defs><style>.test { fill: green; }</style></defs> 7 <defs><style>.test { fill: green; }</style></defs>
8 </svg> 8 </svg>
9 </div> 9 </div>
10 <div id=log></div> 10 <div id=log></div>
11 <script> 11 <script>
12 var svg = document.querySelector("svg"), 12 var svg = document.querySelector("svg"),
13 » style = document.querySelector("style"); 13 style = document.querySelector("style");
14 14
15 test(function() { 15 test(function() {
16 » assert_exists(style, "sheet", ""); 16 // FIXME: This assertion should be replaced with
17 // 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
18 assert_true("sheet" in style, "");
17 }, "SVGStyleElement implements LinkStyle"); 19 }, "SVGStyleElement implements LinkStyle");
18 20
19 test(function() { 21 test(function() {
20 » assert_equals(document.styleSheets[0], style.sheet); 22 assert_equals(document.styleSheets[0], style.sheet);
21 }, "document.styleSheets contains style.sheet"); 23 }, "document.styleSheets contains style.sheet");
22 24
23 test(function() { 25 test(function() {
24 » assert_equals(document.styleSheets[0].ownerNode, style); 26 assert_equals(document.styleSheets[0].ownerNode, style);
25 }, "sheet has correct ownerNode #1"); 27 }, "sheet has correct ownerNode #1");
26 28
27 test(function() { 29 test(function() {
28 » assert_equals(style.sheet.ownerNode, style); 30 assert_equals(style.sheet.ownerNode, style);
29 }, "sheet has correct ownerNode #2"); 31 }, "sheet has correct ownerNode #2");
30 32
31 </script> 33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698