Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <!-- |
michael@0 | 3 | Any copyright is dedicated to the Public Domain. |
michael@0 | 4 | http://creativecommons.org/licenses/publicdomain/ |
michael@0 | 5 | --> |
michael@0 | 6 | <window id="main" |
michael@0 | 7 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 8 | style="background-color: green"> |
michael@0 | 9 | <?xml-stylesheet href="test010.css" type="text/css"?> |
michael@0 | 10 | <?xul-overlay href="test010-overlay.xul" ?> |
michael@0 | 11 | <script> |
michael@0 | 12 | function assert(x, msg) { |
michael@0 | 13 | if(!x) { |
michael@0 | 14 | dump("assertion failed! " + msg + "\n"); |
michael@0 | 15 | document.getElementById("main").style.backgroundColor = "red"; |
michael@0 | 16 | } |
michael@0 | 17 | } |
michael@0 | 18 | |
michael@0 | 19 | try { |
michael@0 | 20 | assert(document.firstChild.id == "main", "nothing in prolog"); |
michael@0 | 21 | var winEl = document.documentElement; |
michael@0 | 22 | assert(winEl.childNodes[0].nodeName == "xml-stylesheet", "xml-stylesheet PI is in the correct place"); |
michael@0 | 23 | assert(winEl.childNodes[1].nodeName == "xul-overlay", "xul-overlay PI is in the correct place"); |
michael@0 | 24 | } catch(e) { |
michael@0 | 25 | dump(e); |
michael@0 | 26 | assert(false, e); |
michael@0 | 27 | throw e; |
michael@0 | 28 | } |
michael@0 | 29 | </script> |
michael@0 | 30 | </window> |