| OLD | NEW | 
|   1 <!DOCTYPE html> |   1 <!DOCTYPE html> | 
|   2  |   2  | 
|   3 <html> |   3 <html> | 
|   4 <head> |   4 <head> | 
|   5     <style> |   5     <style> | 
|   6         #container { |   6         #container { | 
|   7             width: 200px; |   7             width: 200px; | 
|   8             height: 200px; |   8             height: 200px; | 
|   9             overflow: scroll; |   9             overflow: scroll; | 
|  10             margin: 20px; |  10             margin: 20px; | 
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  44         } |  44         } | 
|  45  |  45  | 
|  46         function doTest() |  46         function doTest() | 
|  47         { |  47         { | 
|  48             if (!window.internals) |  48             if (!window.internals) | 
|  49                 return; |  49                 return; | 
|  50  |  50  | 
|  51             var predecessor = document.getElementById('predecessor'); |  51             var predecessor = document.getElementById('predecessor'); | 
|  52             var container = document.getElementById('container'); |  52             var container = document.getElementById('container'); | 
|  53             predecessor.style.display = 'none'; |  53             predecessor.style.display = 'none'; | 
 |  54             window.internals.forceCompositingUpdate(document); | 
|  54  |  55  | 
|  55             var pass = true; |  56             var pass = true; | 
|  56             if (!didOptIn(container)) { |  57             if (!didOptIn(container)) { | 
|  57                 pass = false; |  58                 pass = false; | 
|  58                 write('FAIL - did not opt in when our children are contiguous.')
    ; |  59                 write('FAIL - did not opt in when our children are contiguous.')
    ; | 
|  59             } |  60             } | 
|  60  |  61  | 
|  61             predecessor.style.display = ''; |  62             predecessor.style.display = ''; | 
 |  63             window.internals.forceCompositingUpdate(document); | 
|  62  |  64  | 
|  63             if (didOptIn(container)) { |  65             if (didOptIn(container)) { | 
|  64                 pass = false; |  66                 pass = false; | 
|  65                 write('FAIL - opted in when our children are not contiguous.'); |  67                 write('FAIL - opted in when our children are not contiguous.'); | 
|  66             } |  68             } | 
|  67  |  69  | 
|  68             if (pass) |  70             if (pass) | 
|  69                 write('PASS'); |  71                 write('PASS'); | 
|  70         } |  72         } | 
|  71  |  73  | 
|  72         window.addEventListener('load', doTest, false); |  74         window.addEventListener('load', doTest, false); | 
|  73     </script> |  75     </script> | 
|  74 </head> |  76 </head> | 
|  75  |  77  | 
|  76 <body> |  78 <body> | 
|  77     <div> |  79     <div> | 
|  78         <div class='positioned' id='predecessor'></div> |  80         <div class='positioned' id='predecessor'></div> | 
|  79         <div id='container'> |  81         <div id='container'> | 
|  80             <div class='scrolled'></div> |  82             <div class='scrolled'></div> | 
|  81         </div> |  83         </div> | 
|  82     </div> |  84     </div> | 
|  83     <pre id='console'></pre> |  85     <pre id='console'></pre> | 
|  84 </body> |  86 </body> | 
|  85 </html> |  87 </html> | 
| OLD | NEW |