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

Side by Side Diff: LayoutTests/fast/forms/suggestion-picker/week-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 16 matching lines...) Expand all
27 eventSender.keyDown('downArrow'); 27 eventSender.keyDown('downArrow');
28 shouldBeEqualToString('highlightedEntry()', '2012-W01'); 28 shouldBeEqualToString('highlightedEntry()', '2012-W01');
29 eventSender.keyDown('\n'); 29 eventSender.keyDown('\n');
30 waitUntilClosing(runOnOpenPopup1AfterClosing); 30 waitUntilClosing(runOnOpenPopup1AfterClosing);
31 } 31 }
32 32
33 function runOnOpenPopup1AfterClosing() { 33 function runOnOpenPopup1AfterClosing() {
34 shouldBeNull('document.getElementById("mock-page-popup")'); 34 shouldBeNull('document.getElementById("mock-page-popup")');
35 shouldBeEqualToString('iframe.contentDocument.getElementById("test1").value' , '2012-W01'); 35 shouldBeEqualToString('iframe.contentDocument.getElementById("test1").value' , '2012-W01');
36 36
37 openPickerWithMock(iframe.contentDocument.getElementById('test2'), runOnOpen Popup2); 37 openPicker(iframe.contentDocument.getElementById('test2'), runOnOpenPopup2);
38 } 38 }
39 39
40 function runOnOpenPopup2() { 40 function runOnOpenPopup2() {
41 popupWindow.focus(); 41 popupWindow.focus();
42 42
43 shouldBeNull('highlightedEntry()'); 43 shouldBeNull('highlightedEntry()');
44 eventSender.keyDown('downArrow'); 44 eventSender.keyDown('downArrow');
45 shouldBeEqualToString('highlightedEntry()', '2012-W01'); 45 shouldBeEqualToString('highlightedEntry()', '2012-W01');
46 eventSender.keyDown('\n'); 46 eventSender.keyDown('\n');
47 waitUntilClosing(runOnOpenPopup2AfterClosing); 47 waitUntilClosing(runOnOpenPopup2AfterClosing);
(...skipping 11 matching lines...) Expand all
59 function runOnIFrameLoad() 59 function runOnIFrameLoad()
60 { 60 {
61 testInput1 = iframe.contentDocument.getElementById('test1'); 61 testInput1 = iframe.contentDocument.getElementById('test1');
62 testInput2 = iframe.contentDocument.getElementById('test2'); 62 testInput2 = iframe.contentDocument.getElementById('test2');
63 shouldBeEqualToString('testInput1.value', ''); 63 shouldBeEqualToString('testInput1.value', '');
64 shouldBeEqualToString('testInput2.value', '2002-W02'); 64 shouldBeEqualToString('testInput2.value', '2002-W02');
65 iframe.parentNode.removeChild(iframe); 65 iframe.parentNode.removeChild(iframe);
66 waitUntilClosing(finishJSTest); 66 waitUntilClosing(finishJSTest);
67 } 67 }
68 </script> 68 </script>
69 <iframe id=iframe onload="openPickerWithMock(event.target.contentDocument.getEle mentById('test1'), runOnOpenPopup1);" srcdoc="<input type=week id=test1 list=sug gestions><input type=week id=test2 value=2002-W02 list=suggestions><datalist id= suggestions><option>2012-W01</option></datalist>"></iframe> 69 <iframe id=iframe onload="openPicker(event.target.contentDocument.getElementById ('test1'), runOnOpenPopup1);" srcdoc="<input type=week id=test1 list=suggestions ><input type=week id=test2 value=2002-W02 list=suggestions><datalist id=suggesti ons><option>2012-W01</option></datalist>"></iframe>
70 </body> 70 </body>
71 </html> 71 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698