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

Side by Side Diff: LayoutTests/fast/forms/suggestion-picker/date-suggestion-picker-reset-value-after-reload.html

Issue 633823003: Don't use mock PagePopup if possible, part 2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase again Created 6 years, 2 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="../../forms/resources/picker-common.js"></script> 5 <script src="../../forms/resources/picker-common.js"></script>
6 <script src="resources/suggestion-picker-common.js"></script> 6 <script src="resources/suggestion-picker-common.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <script> 9 <script>
10 description('Checks reloading page resets input values'); 10 description('Checks reloading page resets input values');
(...skipping 11 matching lines...) Expand all
22 eventSender.keyDown('downArrow'); 22 eventSender.keyDown('downArrow');
23 shouldBeEqualToString('highlightedEntry()', '2012-01-01'); 23 shouldBeEqualToString('highlightedEntry()', '2012-01-01');
24 eventSender.keyDown("\n"); 24 eventSender.keyDown("\n");
25 waitUntilClosing(runOnOpenPopup1AfterClosing); 25 waitUntilClosing(runOnOpenPopup1AfterClosing);
26 } 26 }
27 27
28 function runOnOpenPopup1AfterClosing() { 28 function runOnOpenPopup1AfterClosing() {
29 shouldBeNull('document.getElementById("mock-page-popup")'); 29 shouldBeNull('document.getElementById("mock-page-popup")');
30 shouldBeEqualToString('iframe.contentDocument.getElementById("test1").value' , '2012-01-01'); 30 shouldBeEqualToString('iframe.contentDocument.getElementById("test1").value' , '2012-01-01');
31 31
32 openPickerWithMock(iframe.contentDocument.getElementById('test2'), runOnOpen Popup2); 32 openPicker(iframe.contentDocument.getElementById('test2'), runOnOpenPopup2);
33 } 33 }
34 34
35 function runOnOpenPopup2() { 35 function runOnOpenPopup2() {
36 popupWindow.focus(); 36 popupWindow.focus();
37 37
38 shouldBeNull('highlightedEntry()'); 38 shouldBeNull('highlightedEntry()');
39 eventSender.keyDown('downArrow'); 39 eventSender.keyDown('downArrow');
40 shouldBeEqualToString('highlightedEntry()', '2012-01-01'); 40 shouldBeEqualToString('highlightedEntry()', '2012-01-01');
41 eventSender.keyDown("\n"); 41 eventSender.keyDown("\n");
42 waitUntilClosing(runOnOpenPopup2AfterClosing); 42 waitUntilClosing(runOnOpenPopup2AfterClosing);
(...skipping 10 matching lines...) Expand all
53 function runOnIFrameLoad() 53 function runOnIFrameLoad()
54 { 54 {
55 testInput1 = iframe.contentDocument.getElementById('test1'); 55 testInput1 = iframe.contentDocument.getElementById('test1');
56 testInput2 = iframe.contentDocument.getElementById('test2'); 56 testInput2 = iframe.contentDocument.getElementById('test2');
57 shouldBeEqualToString('testInput1.value', ''); 57 shouldBeEqualToString('testInput1.value', '');
58 shouldBeEqualToString('testInput2.value', '2002-02-02'); 58 shouldBeEqualToString('testInput2.value', '2002-02-02');
59 iframe.parentNode.removeChild(iframe); 59 iframe.parentNode.removeChild(iframe);
60 waitUntilClosing(finishJSTest); 60 waitUntilClosing(finishJSTest);
61 } 61 }
62 </script> 62 </script>
63 <iframe id=iframe onload="openPickerWithMock(event.target.contentDocument.getEle mentById('test1'), runOnOpenPopup1);" srcdoc="<input type=date id=test1 list=sug gestions><input type=date id=test2 value=2002-02-02 list=suggestions><datalist i d=suggestions><option>2012-01-01</option></datalist>"></iframe> 63 <iframe id=iframe onload="openPicker(event.target.contentDocument.getElementById ('test1'), runOnOpenPopup1);" srcdoc="<input type=date id=test1 list=suggestions ><input type=date id=test2 value=2002-02-02 list=suggestions><datalist id=sugges tions><option>2012-01-01</option></datalist>"></iframe>
64 </body> 64 </body>
65 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698