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

Side by Side Diff: LayoutTests/fast/css/border-image-value-grammar.html

Issue 471893002: Support consecutive slash operators for border-image value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update with one assignment per line Created 6 years, 1 month 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 | « no previous file | LayoutTests/fast/css/border-image-value-grammar-expected.txt » ('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/js-test.js"></script>
3 <script>
4 description("Support consecutive slash operators for border-image");
5
6 var element = document.createElement('div');
7 var style = element.style;
8 style.borderImage = '3 / / 2';
9 shouldBe("style.getPropertyValue('border-image-slice')", "'3'");
Timothy Loh 2014/12/18 23:13:05 Can we use shouldBeEqualToString? :)
je_julie(Not used) 2014/12/19 02:17:53 Done.
10 shouldBe("style.getPropertyValue('border-image-width')", "'initial'");
11 shouldBe("style.getPropertyValue('border-image-outset')", "'2'");
12
13 style.borderImage = '4 / 5';
14 shouldBe("style.getPropertyValue('border-image-slice')", "'4'");
15 shouldBe("style.getPropertyValue('border-image-width')", "'5'");
16 shouldBe("style.getPropertyValue('border-image-outset')", "'initial'");
17
18 style.borderImage = '1 / 2 / 3';
19 shouldBe("style.getPropertyValue('border-image-slice')", "'1'");
20 shouldBe("style.getPropertyValue('border-image-width')", "'2'");
21 shouldBe("style.getPropertyValue('border-image-outset')", "'3'");
22 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/border-image-value-grammar-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698