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

Side by Side Diff: Source/web/tests/data/specify_size.html

Issue 19906002: Move data/ directory from WebKit/chromium/tests into web/tests/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 5 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
« no previous file with comments | « Source/web/tests/data/short_scroll.html ('k') | Source/web/tests/data/spell.html » ('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 <html> 2 <html>
3 <body style='margin:0px'> 3 <body style='margin:0px'>
4 <img id='sizer'/> 4 <img id='sizer'/>
5 <script> 5 <script>
6 // The desired size should be specified in the url in the search portion 6 // The desired size should be specified in the url in the search portion
7 // like this ?widthDimension:heightDimension. 7 // like this ?widthDimension:heightDimension.
8 var unitMatch = '([0-9]+[a-zA-Z]+)'; 8 var unitMatch = '([0-9]+[a-zA-Z]+)';
9 var searchParser = new RegExp('\\?' + unitMatch + '(?:\\:' + unitMatch + ')'); 9 var searchParser = new RegExp('\\?' + unitMatch + '(?:\\:' + unitMatch + ')');
10 var parsedParameters = searchParser.exec(window.location.search); 10 var parsedParameters = searchParser.exec(window.location.search);
11 11
12 // Set the sizes. 12 // Set the sizes.
13 var elementToSize = document.getElementById('sizer'); 13 var elementToSize = document.getElementById('sizer');
14 var width = parsedParameters[1]; 14 var width = parsedParameters[1];
15 elementToSize.style.width = width; 15 elementToSize.style.width = width;
16 var height = parsedParameters[2]; 16 var height = parsedParameters[2];
17 elementToSize.style.height = height; 17 elementToSize.style.height = height;
18 </script> 18 </script>
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW
« no previous file with comments | « Source/web/tests/data/short_scroll.html ('k') | Source/web/tests/data/spell.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698