Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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/publicdomain/zero/1.0/ |
michael@0 | 5 | --> |
michael@0 | 6 | <svg version="1.1" xmlns="http://www.w3.org/2000/svg" onload="m();"> |
michael@0 | 7 | <title>Testcase for dynamic switch changes</title> |
michael@0 | 8 | <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=409383 --> |
michael@0 | 9 | <script> |
michael@0 | 10 | function m() { |
michael@0 | 11 | var svgns = "http://www.w3.org/2000/svg"; |
michael@0 | 12 | |
michael@0 | 13 | var rect1 = document.getElementById("rect1"); |
michael@0 | 14 | rect1.parentNode.removeChild(rect1); |
michael@0 | 15 | |
michael@0 | 16 | var rect2a = document.createElementNS(svgns, "rect"); |
michael@0 | 17 | rect2a.setAttribute("x", "200"); |
michael@0 | 18 | rect2a.setAttribute("y", "100"); |
michael@0 | 19 | rect2a.setAttribute("width", "50"); |
michael@0 | 20 | rect2a.setAttribute("height", "50") |
michael@0 | 21 | rect2a.setAttribute("fill", "lime"); |
michael@0 | 22 | var rect2b = document.getElementById("rect2b"); |
michael@0 | 23 | rect2b.parentNode.insertBefore(rect2a, rect2b); |
michael@0 | 24 | |
michael@0 | 25 | var rect3a = document.getElementById("rect3a"); |
michael@0 | 26 | var rect3b = document.getElementById("rect3b"); |
michael@0 | 27 | rect3a.parentNode.insertBefore(rect3a, rect3b); |
michael@0 | 28 | |
michael@0 | 29 | var rect4a = document.getElementById("rect4a"); |
michael@0 | 30 | rect4a.setAttribute("systemLanguage", "foo"); |
michael@0 | 31 | } |
michael@0 | 32 | </script> |
michael@0 | 33 | |
michael@0 | 34 | <rect width="100%" height="100%" fill="lime"/> |
michael@0 | 35 | |
michael@0 | 36 | <switch> |
michael@0 | 37 | <!-- test removing first child --> |
michael@0 | 38 | <rect id="rect1" x="50" y="100" width="50" height="50" fill="red"/> |
michael@0 | 39 | <rect x="50" y="100" width="50" height="50" fill="lime"/> |
michael@0 | 40 | <rect x="50" y="100" width="50" height="50" fill="red"/> |
michael@0 | 41 | </switch> |
michael@0 | 42 | <switch> |
michael@0 | 43 | <!-- test adding first child --> |
michael@0 | 44 | <rect id="rect2b" x="200" y="100" width="50" height="50" fill="red"/> |
michael@0 | 45 | </switch> |
michael@0 | 46 | <switch> |
michael@0 | 47 | <!-- test change child order --> |
michael@0 | 48 | <rect id="rect3b" x="50" y="200" width="50" height="50" fill="red"/> |
michael@0 | 49 | <rect id="rect3a" x="50" y="200" width="50" height="50" fill="lime"/> |
michael@0 | 50 | </switch> |
michael@0 | 51 | <switch> |
michael@0 | 52 | <!-- test change child attribute --> |
michael@0 | 53 | <rect id="rect4a" x="200" y="200" width="50" height="50" fill="red"/> |
michael@0 | 54 | <rect x="200" y="200" width="50" height="50" fill="lime"/> |
michael@0 | 55 | </switch> |
michael@0 | 56 | </svg> |