| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <meta name="transition-elements" content="#transitionElement,#boxTransitionEleme
nt;*"> | 3 <meta name="transition-elements" content="#transitionElement,#boxTransitionEleme
nt;*"> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 description('Tests for the HTML markup serializer used for transition elements a
nd transition element names and rects'); | 7 description('Tests for the HTML markup serializer used for transition elements a
nd transition element names and rects'); |
| 8 jsTestIsAsync = true; | 8 jsTestIsAsync = true; |
| 9 | 9 |
| 10 window.onload = function() { | 10 window.onload = function() { |
| 11 if (window.internals) { | 11 if (window.internals) { |
| 12 var serializedHTML = internals.serializeNavigationMarkup(); | 12 var serializedHTML = internals.serializeNavigationMarkup(); |
| 13 var testiframe = document.getElementById('testiframe'); | 13 var testiframe = document.getElementById('testiframe'); |
| 14 testiframe.contentDocument.write(serializedHTML); | 14 testiframe.contentDocument.write(serializedHTML); |
| 15 testiframe.contentDocument.close(); |
| 15 | 16 |
| 16 transitionElement = document.getElementById('transitionElement'); | 17 transitionElement = document.getElementById('transitionElement'); |
| 17 sourceElement = document.getElementById('boxTransitionElement'); | 18 sourceElement = document.getElementById('boxTransitionElement'); |
| 18 destElement = testiframe.contentDocument.getElementById('boxTransitionEl
ement'); | 19 destElement = testiframe.contentDocument.getElementById('boxTransitionEl
ement'); |
| 19 | 20 |
| 20 sourceElementRect = sourceElement.getBoundingClientRect(); | 21 sourceElementRect = sourceElement.getBoundingClientRect(); |
| 21 | 22 |
| 22 bottomElement = document.getElementById('bottomElement'); | 23 bottomElement = document.getElementById('bottomElement'); |
| 23 | 24 |
| 24 preHidingBottomElementRect = bottomElement.getBoundingClientRect(); | 25 preHidingBottomElementRect = bottomElement.getBoundingClientRect(); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 <div id="transitionElement">Header</div> | 113 <div id="transitionElement">Header</div> |
| 113 | 114 |
| 114 <div id="boxTransitionElement"> | 115 <div id="boxTransitionElement"> |
| 115 <img id="blueBox" src="resources/images/blue.png"> | 116 <img id="blueBox" src="resources/images/blue.png"> |
| 116 </div> | 117 </div> |
| 117 | 118 |
| 118 <div id="bottomElement">Footer</div> | 119 <div id="bottomElement">Footer</div> |
| 119 </div> | 120 </div> |
| 120 | 121 |
| 121 <iframe id="testiframe"></iframe> | 122 <iframe id="testiframe"></iframe> |
| OLD | NEW |