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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-clearbutton-visibility-after-restore.html

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Fix Android PDF tests where PDFs should be downloaded 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <input id="emptyOnFirstVisit"> 4 <input id="emptyOnFirstVisit">
5 <form action="data:text/html,&lt;script>history.back()&lt;/script>" id=form1> 5 <form action="../../../resources/back.html" id=form1>
6 <input type=week id=input1> 6 <input type=week id=input1>
7 <input type=week id=input2> 7 <input type=week id=input2>
8 <input type=week id=input3 value="2012-W01"> 8 <input type=week id=input3 value="2012-W01">
9 </form> 9 </form>
10 10
11 <script> 11 <script>
12 // Restoring the form should update the clear button visibility. 12 // Restoring the form should update the clear button visibility.
13 testRunner.waitUntilDone(); 13 testRunner.waitUntilDone();
14 function runTest() 14 function runTest()
15 { 15 {
16 var state = document.getElementById('emptyOnFirstVisit'); 16 var state = document.getElementById('emptyOnFirstVisit');
17 if (!state.value) { 17 if (!state.value) {
18 // First visit. 18 // First visit.
19 setTimeout(function() { 19 setTimeout(function() {
20 state.value = 'visited'; 20 state.value = 'visited';
21 document.getElementById('input2').value = "2001-W02"; 21 document.getElementById('input2').value = "2001-W02";
22 document.getElementById('input3').value = "2002-W03"; 22 document.getElementById('input3').value = "2002-W03";
23 document.getElementById('form1').submit(); 23 document.getElementById('form1').submit();
24 }, 0); 24 }, 0);
25 } else { 25 } else {
26 testRunner.notifyDone(); 26 testRunner.notifyDone();
27 } 27 }
28 } 28 }
29 29
30 window.onload = runTest; 30 window.onload = runTest;
31 </script> 31 </script>
32 </body> 32 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698