summaryrefslogtreecommitdiffstats
path: root/dom/svg/test/test_SVG_namespace_ids.html
blob: 60726718256cf84486b85bc53e016b051f7bb19c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=589640
-->
<head>
  <title>Test for Bug 589640</title>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
  <script class="testbody" type="application/javascript">
    SimpleTest.waitForExplicitFinish();

    function debug(message) {
      document.getElementById('debug').appendChild(document.createTextNode(message + "\n"));
    }

    function runTests()
    {
      var svg = document.getElementById('svg1');
      for (var el = 0; el < svg.children.length; el++) {
        is(svg.children[el].id, svg.children[el].localName, svg.children[el].localName + " in the SVG namespace has a valid ID");
        debug(svg.children[el].localName + '.id = ' + svg.children[el].id);
      }

      SimpleTest.finish();
    }
  </script>
</head>
<body onload="runTests()">
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=589640">Mozilla Bug 589640</a>
<pre id="debug"></pre>
<!-- NOTE: This test relies on the ids being the same as the element names -->
<svg id="svg1">
  <a id="a" />
  <animate id="animate" />
  <animateColor id="animateColor" />
  <animateMotion id="animateMotion" />
  <animateTransform id="animateTransform" />
  <circle id="circle" />
  <clipPath id="clipPath" />
  <color-profile id="color-profile" />
  <cursor id="cursor" />
  <defs id="defs" />
  <desc id="desc" />
  <ellipse id="ellipse" />
  <feBlend id="feBlend" />
  <feColorMatrix id="feColorMatrix" />
  <feComponentTransfer id="feComponentTransfer" />
  <feComposite id="feComposite" />
  <feConvolveMatrix id="feConvolveMatrix" />
  <feDiffuseLighting id="feDiffuseLighting" />
  <feDisplacementMap id="feDisplacementMap" />
  <feDistantLight id="feDistantLight" />
  <feDropShadow id="feDropShadow" />
  <feFlood id="feFlood" />
  <feFuncA id="feFuncA" />
  <feFuncB id="feFuncB" />
  <feFuncG id="feFuncG" />
  <feFuncR id="feFuncR" />
  <feGaussianBlur id="feGaussianBlur" />
  <feImage id="feImage" />
  <feMerge id="feMerge" />
  <feMergeNode id="feMergeNode" />
  <feMorphology id="feMorphology" />
  <feOffset id="feOffset" />
  <fePointLight id="fePointLight" />
  <feSpecularLighting id="feSpecularLighting" />
  <feSpotLight id="feSpotLight" />
  <feTile id="feTile" />
  <feTurbulence id="feTurbulence" />
  <filter id="filter" />
  <font id="font" />
  <font-face id="font-face" />
  <font-face-format id="font-face-format" />
  <font-face-name id="font-face-name" />
  <font-face-src id="font-face-src" />
  <font-face-uri id="font-face-uri" />
  <foreignObject id="foreignObject" />
  <g id="g" />
  <glyph id="glyph" />
  <glyphRef id="glyphRef" />
  <hkern id="hkern" />
  <image id="image" />
  <line id="line" />
  <linearGradient id="linearGradient" />
  <marker id="marker" />
  <mask id="mask" />
  <metadata id="metadata" />
  <missing-glyph id="missing-glyph" />
  <mpath id="mpath" />
  <path id="path" />
  <pattern id="pattern" />
  <polygon id="polygon" />
  <polyline id="polyline" />
  <radialGradient id="radialGradient" />
  <rect id="rect" />
  <script id="script" />
  <set id="set" />
  <stop id="stop" />
  <style id="style" />
  <svg id="svg" />
  <switch id="switch" />
  <symbol id="symbol" />
  <text id="text" />
  <textPath id="textPath" />
  <title id="title" />
  <tref id="tref" />
  <tspan id="tspan" />
  <use id="use" />
  <view id="view" />
  <vkern id="vkern" />
</svg>
</body>
</html>