| OLD | NEW | 
 | (Empty) | 
|   1 <div id="description">This tests setting the WebkitUserSelect property on a CSSS
    tyleDeclaration.</div> |  | 
|   2 <div contenteditable="true" id="test">This text should not be selectable.</div> |  | 
|   3  |  | 
|   4 <script> |  | 
|   5 if (window.testRunner) |  | 
|   6     window.testRunner.dumpAsText(); |  | 
|   7 div = document.getElementById("test"); |  | 
|   8 text = div.firstChild; |  | 
|   9 if (div.style.WebkitUserSelect == undefined) |  | 
|  10     document.write("FAILURE: CSSStyleDeclaration::WebkitUserSelect was undefined
    .<br>"); |  | 
|  11 div.style.WebkitUserSelect = "none"; |  | 
|  12 s = window.getSelection(); |  | 
|  13 s.setBaseAndExtent(text, 1, text, 2); |  | 
|  14 if (s.type != "None") |  | 
|  15     document.write("FAILURE: Setting -webkit-user-select to none did not have th
    e expected effect. Setting the selection did not fail.<br>"); |  | 
|  16      |  | 
|  17 document.write("This test passed if you see no failure messages.") |  | 
|  18 </script> |  | 
| OLD | NEW |