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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/background-image-url-setproperty.html

Issue 2622993003: Compare relative url if absolute urls are empty for CSSImageValue (Closed)
Patch Set: modified tc Created 3 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
« no previous file with comments | « AUTHORS ('k') | third_party/WebKit/Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 var doc = document.implementation.createHTMLDocument("");
6 doc.head.innerHTML = "<style>span { background: url(fail) }</style>";
7 var rule = doc.head.firstChild.sheet.cssRules[0];
8
9 test(() => {
10 assert_equals(rule.style.background, 'url("fail")');
11 }, "Check initial background url.");
12
13 test(() => {
14 rule.style.setProperty("background", "url(pass)");
15 assert_equals(rule.style.background, 'url("pass")');
16 }, "Setting background to a relative url should change its value.");
17 </script>
OLDNEW
« no previous file with comments | « AUTHORS ('k') | third_party/WebKit/Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698