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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp width: 400px;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp height: 300px;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp<script type="text/javascript" src="/build/yui/yui.js"></script>
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp allowRollup: false,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min'
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }).use('charts', 'test', 'node-event-simulate', 'event-focus', 'console', function (Y) {
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp var ASSERT = Y.Assert,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp ObjectAssert = Y.ObjectAssert,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp RIGHT = 39;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //-------------------------------------------------------------------------
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp // Chart AriaEvent Test Case
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //-------------------------------------------------------------------------
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp function ChartAriaEventTestCase(cfg, type)
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp ChartAriaEventTestCase.superclass.constructor.call(this);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp this.name = type + " Chart AriaEvent KeyDown Tests";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //---------------------------------------------------------------------
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp // Setup and teardown of test harnesses
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //---------------------------------------------------------------------
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp * Sets up several event handlers used to test UserAction mouse events.
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp setUp : function()
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //create the chart
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //reset the result
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //assign event handler
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp this.handler = Y.on("keydown", Y.bind(this.handleEvent, this), this.contentBox);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp * Removes event handlers that were used during the test.
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp tearDown : function()
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //remove the element
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp _seriesIndex: -1,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp _itemIndex: -1,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp compareLiveRegionMessages: function(target, key, liveRegion)
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp keyCode: key
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp return [liveRegion.get("innerHTML").toString(), this.getLiveRegionMessage(this.result).toString()];
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //---------------------------------------------------------------------
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp // Event handler
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //---------------------------------------------------------------------
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp * Uses to trap and assign the event object for interrogation.
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp * @param {Event} event The event object created from the event.
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp handleEvent : function(event)
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.ChartAriaEventTestCase = ChartAriaEventTestCase;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp function CartesianChartAriaEventTestCase()
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp CartesianChartAriaEventTestCase.superclass.constructor.apply(this, arguments);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.extend(CartesianChartAriaEventTestCase, ChartAriaEventTestCase, {
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp testDefault: function()
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp var cb = this.chart.get("contentBox"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider = this.chart.get("dataProvider"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp target = Y.one(cb),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.one(cb).simulate("keydown", {
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp keyCode: DOWN
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.Assert.isTrue(liveRegion.get("innerHTML") == this.getLiveRegionMessage(this.result));
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp values = this.compareLiveRegionMessages(target, RIGHT, liveRegion);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.Assert.isTrue(liveRegion.get("innerHTML") == this.getLiveRegionMessage(this.result));
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp values = this.compareLiveRegionMessages(target, RIGHT, liveRegion);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.Assert.isTrue(values[0] == values[1]);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.one(cb).simulate("keydown", {
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp keyCode: DOWN
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.Assert.isTrue(liveRegion.get("innerHTML") == this.getLiveRegionMessage(this.result));
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp values = this.compareLiveRegionMessages(target, RIGHT, liveRegion);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp categoryItem,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp seriesCollection = this.chart.get("seriesCollection"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataLength;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp if(key === 38)
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp seriesIndex = seriesIndex < 1 ? len - 1 : seriesIndex - 1;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp seriesIndex = seriesIndex >= len - 1 ? 0 : seriesIndex + 1;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp this._itemIndex = -1;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp seriesIndex = 0;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp this._seriesIndex = seriesIndex;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp series = this.chart.getSeries(parseInt(seriesIndex, 10));
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp msg = series.get("valueDisplayName") + " series.";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp if(seriesIndex > -1)
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp series = this.chart.getSeries(parseInt(seriesIndex, 10));
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp seriesIndex = 0;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp this._seriesIndex = seriesIndex;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp series = this.chart.getSeries(parseInt(seriesIndex, 10));
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp msg = series.get("valueDisplayName") + " series.";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataLength = series._dataLength ? series._dataLength : 0;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp if(key === 37)
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp itemIndex = itemIndex > 0 ? itemIndex - 1 : dataLength - 1;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp itemIndex = itemIndex > 0 ? itemIndex - 1 : dataLength - 1;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp else if(key === 39)
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp itemIndex = itemIndex >= dataLength - 1 ? 0 : itemIndex + 1;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp this._itemIndex = itemIndex;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp items = this.chart.getSeriesItems(series, itemIndex);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp categoryItem = items.category;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp valueItem = items.value;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp if(categoryItem && valueItem && categoryItem.value && valueItem.value)
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp msg += categoryItem.displayName + ": " + categoryItem.axis.formatLabel.apply(this, [categoryItem.value, categoryItem.axis.get("labelFormat")]) + ", ";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp msg += valueItem.displayName + ": " + valueItem.axis.formatLabel.apply(this, [valueItem.value, valueItem.axis.get("labelFormat")]) + ", ";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp msg += "No data available.";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp msg += (itemIndex + 1) + " of " + dataLength + ". ";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp return msg;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.CartesianChartAriaEventTestCase = CartesianChartAriaEventTestCase;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp function PieChartAriaEventTestCase()
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp PieChartAriaEventTestCase.superclass.constructor.apply(this, arguments);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.extend(PieChartAriaEventTestCase, ChartAriaEventTestCase, {
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp testDefault: function()
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp var cb = this.chart.get("contentBox"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider = this.chart.get("dataProvider"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp target = Y.one(cb),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp values = this.compareLiveRegionMessages(target, RIGHT, liveRegion);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp values = this.compareLiveRegionMessages(target, LEFT, liveRegion);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.Assert.isTrue(values[0] == values[1]);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp getLiveRegionMessage: function(e) {
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp var key = parseFloat(e.keyCode),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp categoryItem,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp seriesIndex = 0,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp itemIndex = this._itemIndex,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp seriesCollection = this.chart.get("seriesCollection"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp series = this.chart.getSeries(parseInt(seriesIndex, 10));
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp markers = series.get("markers");
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp if(key === 37)
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp itemIndex = itemIndex > 0 ? itemIndex - 1 : len - 1;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp else if(key === 39)
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp itemIndex = itemIndex >= len - 1 ? 0 : itemIndex + 1;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp this._itemIndex = itemIndex;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp items = this.chart.getSeriesItems(series, itemIndex);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp categoryItem = items.category;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp valueItem = items.value;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp pct = Math.round((valueItem.value / total) * 10000)/100;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp if(categoryItem && valueItem)
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp msg += categoryItem.displayName + ": " + categoryItem.axis.formatLabel.apply(this, [categoryItem.value, categoryItem.axis.get("labelFormat")]) + ", ";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp msg += valueItem.displayName + ": " + valueItem.axis.formatLabel.apply(this, [valueItem.value, valueItem.axis.get("labelFormat")]) + ", ";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp msg += "Percent of total " + valueItem.displayName + ": " + pct + "%,";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp msg += "No data available,";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp msg += (itemIndex + 1) + " of " + len + ". ";
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp return msg;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp Y.PieChartAriaEventTestCase = PieChartAriaEventTestCase;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp var DataProvider = [
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp {category:"5/1/2010", values:2000, expenses:3700, revenue:2200},
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp {category:"5/2/2010", values:50, expenses:9100, revenue:100},
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp {category:"5/3/2010", values:400, expenses:1100, revenue:1500},
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp {category:"5/4/2010", values:200, expenses:1900, revenue:2800},
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp {category:"5/5/2010", values:5000, expenses:5000, revenue:2650}
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp PieDataProvider = [
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite = new Y.Test.Suite("Chart Aria Event Tests"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp columnTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "column",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "Column"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "bar",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stackedColumnTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "column",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stacked: true,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "StackedColumn"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stackedBarTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "bar",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stacked: true,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "StackedBar"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp comboTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "combo",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "Combo"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stackedComboTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "combo",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stacked: true,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "StackedCombo"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "area",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "Area"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stackedAreaTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "area",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stacked: true,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "StackedArea"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp splineTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "spline",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "Spline"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stackedSplineTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "spline",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stacked: true,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "StackedSpline"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp comboSplineTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "combospline",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "ComboSpline"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stackedComboSplineTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "combospline",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stacked: true,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "StackedComboSpline"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "line",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "Line"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stackedLineTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "line",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stacked: true,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "StackedLine"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp markerTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "markerseries",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "Marker"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stackedMarkerTests = new Y.CartesianChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "markerseries",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp stacked: true,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: DataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp }, "StackedMarker"),
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp pieTests = new Y.PieChartAriaEventTestCase({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp type: "pie",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp render: "#mychart",
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp dataProvider: PieDataProvider
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(columnTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(stackedColumnTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(stackedBarTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(comboTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(stackedComboTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(stackedAreaTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(splineTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(stackedSplineTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(comboSplineTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(stackedComboSplineTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(stackedLineTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(markerTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp suite.add(stackedMarkerTests);
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //return it
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp return suite;
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp var r = new Y.Console({
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp verbose : true,
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp newestOnTop : false
4c307472e86c080e30ac5eb2ce60ab4f6fc10b28Tripp //add to the testrunner and run