summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/maction-dynamic-3.html
blob: 4155941df50b89301dbbc79867fc9e2bf607a9cb (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<title>dynamic maction 3</title>
</head>

<body>

<p>
<math>
  <maction id="m1" actiontype="toggle">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m2" actiontype="toggle" selection="5">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m3" actiontype="toggle" selection="5">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m4" actiontype="toggle">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m5" actiontype="toggle" selection="5">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m6" actiontype="toggle">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m7">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m8" actiontype="unknown-action-type">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m9" selection="5">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m10" actiontype="unknown-action-type" selection="5">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m11" actiontype="statusline">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m12" actiontype="statusline" selection="5">
    <mtext>--1--</mtext>
    <mtext>--2--</mtext>
  </maction>
</math>
</p>

<script>
  function doTest() {
    document.getElementById("m1").setAttribute("selection", "5");
    document.getElementById("m2").setAttribute("selection", "1");
    document.getElementById("m3").setAttribute("actiontype", "statusline");
    document.getElementById("m4").removeAttribute("actiontype");
    document.getElementById("m5").setAttribute("actiontype", "unknown-action-type");
    document.getElementById("m6").setAttribute("actiontype", "unknown-action-type");
    document.getElementById("m7").setAttribute("actiontype", "toggle");
    document.getElementById("m8").setAttribute("actiontype", "toggle");
    document.getElementById("m9").setAttribute("actiontype", "statusline");
    document.getElementById("m10").setAttribute("actiontype", "statusline");
    document.getElementById("m11").setAttribute("selection", "5");
    document.getElementById("m12").setAttribute("actiontype", "toggle");
  
    document.documentElement.removeAttribute('class');
  }
  window.addEventListener("MozReftestInvalidate", doTest, false);
</script>

</body>
</html>