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

Side by Side Diff: ManualTests/forms/date-suggestion-picker.html

Issue 790103005: Fix resource paths in ManualTests/forms (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 | « ManualTests/forms/color-suggestion-picker.html ('k') | no next file » | 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 <head> 3 <head>
4 <meta charset=utf-8> 4 <meta charset=utf-8>
5 <title>Calendar Picker test</title> 5 <title>Calendar Picker test</title>
6 <style> 6 <style>
7 body { 7 body {
8 background-color: #eeffff; 8 background-color: #eeffff;
9 } 9 }
10 iframe { 10 iframe {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 suggestionHighlightColor: "#0000ff", 187 suggestionHighlightColor: "#0000ff",
188 suggestionHighlightTextColor: "#ffffff" 188 suggestionHighlightTextColor: "#ffffff"
189 }; 189 };
190 190
191 function openCalendar(args) { 191 function openCalendar(args) {
192 var frame = document.getElementsByTagName('iframe')[0]; 192 var frame = document.getElementsByTagName('iframe')[0];
193 var doc = frame.contentDocument; 193 var doc = frame.contentDocument;
194 doc.documentElement.innerHTML = '<head></head><body><div id=main>Loading...< /div></body>'; 194 doc.documentElement.innerHTML = '<head></head><body><div id=main>Loading...< /div></body>';
195 var commonCssLink = doc.createElement('link'); 195 var commonCssLink = doc.createElement('link');
196 commonCssLink.rel = 'stylesheet'; 196 commonCssLink.rel = 'stylesheet';
197 commonCssLink.href = '../../Source/WebCore/Resources/pagepopups/pickerCommon .css?' + (new Date()).getTime(); 197 commonCssLink.href = '../../Source/web/resources/pickerCommon.css?' + (new D ate()).getTime();
198 doc.head.appendChild(commonCssLink); 198 doc.head.appendChild(commonCssLink);
199 var commonChromiumCssLink = doc.createElement('link'); 199 var buttonCssLink = doc.createElement('link');
200 commonChromiumCssLink.rel = 'stylesheet'; 200 buttonCssLink.rel = 'stylesheet';
201 commonChromiumCssLink.href = '../../Source/WebCore/Resources/pagepopups/chro mium/pickerCommonChromium.css?' + (new Date()).getTime(); 201 buttonCssLink.href = '../../Source/web/resources/pickerButton.css?' + (new D ate()).getTime();
202 doc.head.appendChild(commonChromiumCssLink); 202 doc.head.appendChild(buttonCssLink);
203 var suggestionPickerCssLink = doc.createElement('link'); 203 var suggestionPickerCssLink = doc.createElement('link');
204 suggestionPickerCssLink.rel = 'stylesheet'; 204 suggestionPickerCssLink.rel = 'stylesheet';
205 suggestionPickerCssLink.href = '../../Source/WebCore/Resources/pagepopups/su ggestionPicker.css?' + (new Date()).getTime(); 205 suggestionPickerCssLink.href = '../../Source/web/resources/suggestionPicker. css?' + (new Date()).getTime();
206 doc.head.appendChild(suggestionPickerCssLink); 206 doc.head.appendChild(suggestionPickerCssLink);
207 var link = doc.createElement('link'); 207 var link = doc.createElement('link');
208 link.rel = 'stylesheet'; 208 link.rel = 'stylesheet';
209 link.href = '../../Source/WebCore/Resources/pagepopups/calendarPicker.css?' + (new Date()).getTime(); 209 link.href = '../../Source/web/resources/calendarPicker.css?' + (new Date()). getTime();
210 doc.head.appendChild(link); 210 doc.head.appendChild(link);
211 var calendarPickerChromiumCssLink = doc.createElement('link');
212 calendarPickerChromiumCssLink.rel = 'stylesheet';
213 calendarPickerChromiumCssLink.href = '../../Source/WebCore/Resources/pagepop ups/chromium/calendarPickerChromium.css?' + (new Date()).getTime();
214 doc.head.appendChild(calendarPickerChromiumCssLink);
215 var commonJsScript = doc.createElement('script'); 211 var commonJsScript = doc.createElement('script');
216 commonJsScript.src = '../../Source/WebCore/Resources/pagepopups/pickerCommon .js?' + (new Date()).getTime(); 212 commonJsScript.src = '../../Source/web/resources/pickerCommon.js?' + (new Da te()).getTime();
217 doc.body.appendChild(commonJsScript); 213 doc.body.appendChild(commonJsScript);
218 var suggestionPickerJsScript = doc.createElement('script'); 214 var suggestionPickerJsScript = doc.createElement('script');
219 suggestionPickerJsScript.src = '../../Source/WebCore/Resources/pagepopups/su ggestionPicker.js?' + (new Date()).getTime(); 215 suggestionPickerJsScript.src = '../../Source/web/resources/suggestionPicker. js?' + (new Date()).getTime();
220 doc.body.appendChild(suggestionPickerJsScript); 216 doc.body.appendChild(suggestionPickerJsScript);
221 var script = doc.createElement('script'); 217 var script = doc.createElement('script');
222 script.src = '../../Source/WebCore/Resources/pagepopups/calendarPicker.js?' + (new Date()).getTime(); 218 script.src = '../../Source/web/resources/calendarPicker.js?' + (new Date()). getTime();
223 doc.body.appendChild(script); 219 doc.body.appendChild(script);
224 220
225 var pagePopupController = { 221 var pagePopupController = {
226 setValueAndClosePopup: function(numValue, stringValue) { 222 setValueAndClosePopup: function(numValue, stringValue) {
227 window.log('number=' + numValue + ', string="' + stringValue + '"'); 223 window.log('number=' + numValue + ', string="' + stringValue + '"');
228 if (numValue == 0) 224 if (numValue == 0)
229 window.document.getElementById('date').value = stringValue; 225 window.document.getElementById('date').value = stringValue;
230 }, 226 },
231 localizeNumberString: function(numString) { 227 localizeNumberString: function(numString) {
232 if (typeof numString == "number") 228 if (typeof numString == "number")
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 function log(str) { 266 function log(str) {
271 var entry = document.createElement('li'); 267 var entry = document.createElement('li');
272 entry.innerText = str; 268 entry.innerText = str;
273 document.getElementById('console').appendChild(entry); 269 document.getElementById('console').appendChild(entry);
274 } 270 }
275 271
276 openCalendar(englishArguments); 272 openCalendar(englishArguments);
277 </script> 273 </script>
278 </body> 274 </body>
279 </html> 275 </html>
OLDNEW
« no previous file with comments | « ManualTests/forms/color-suggestion-picker.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698