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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/css/baseline-shift-inherit.html

Issue 2782583002: Deduplicate testharness test names in LayoutTests/svg/ (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | third_party/WebKit/LayoutTests/svg/css/baseline-shift-inherit-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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <style> 4 <style>
5 text { 5 text {
6 baseline-shift: inherit; 6 baseline-shift: inherit;
7 } 7 }
8 </style> 8 </style>
9 <svg height="0"><text></text></svg> 9 <svg height="0"><text></text></svg>
10 <script> 10 <script>
11 setup(function() { 11 setup(function() {
12 window.svg = document.querySelector('svg'); 12 window.svg = document.querySelector('svg');
13 window.textElement = document.querySelector('text'); 13 window.textElement = document.querySelector('text');
14 }); 14 });
15 [ 15 [
16 {value: 'baseline', expected: '0px'}, 16 {value: 'baseline', expected: '0px'},
17 {value: 'sub'}, 17 {value: 'sub'},
18 {value: 'super'}, 18 {value: 'super'},
19 {value: '10px'}, 19 {value: '10px'},
20 {value: '100%'} 20 {value: '100%'}
21 ].forEach(function(item) { 21 ].forEach(function(item) {
22 test(function() { 22 test(function() {
23 svg.style.setProperty('baseline-shift', item.value); 23 svg.style.setProperty('baseline-shift', item.value);
24 assert_equals(getComputedStyle(textElement).baselineShift, item.expected || item.value); 24 assert_equals(getComputedStyle(textElement).baselineShift, item.expected || item.value);
25 }, 'Inheritance of the baseline-shift property - ' + item + '.'); 25 }, 'Inheritance of the baseline-shift property, ' + item.value + '.');
26 }); 26 });
27 </script> 27 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/css/baseline-shift-inherit-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698