@qooxdoo/framework 7.1.0 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/Manifest.json +22 -22
- package/lib/compiler/compile-info.json +66 -66
- package/lib/compiler/index.js +406 -335
- package/lib/resource/qx/tool/cli/templates/loader/loader-browser.tmpl.js +1 -2
- package/lib/resource/qx/tool/cli/templates/skeleton/mobile/source/theme/custom/css/custom.css.map +1 -1
- package/lib/resource/qx/tool/schema/compile-1-0-0.json +11 -1
- package/npm-shrinkwrap.json +793 -744
- package/package.json +9 -8
- package/source/class/qx/Interface.js +13 -15
- package/source/class/qx/dev/unit/MTestLoader.js +25 -33
- package/source/class/qx/dev/unit/TestResult.js +9 -13
- package/source/class/qx/event/handler/Focus.js +1 -1
- package/source/class/qx/html/Element.js +1 -1
- package/source/class/qx/html/Node.js +0 -1
- package/source/class/qx/io/request/AbstractRequest.js +42 -66
- package/source/class/qx/test/Interface.js +70 -6
- package/source/class/qx/test/Mixin.js +20 -17
- package/source/class/qx/test/Promise.js +67 -91
- package/source/class/qx/test/bom/History.js +11 -19
- package/source/class/qx/test/bom/WebWorker.js +7 -15
- package/source/class/qx/test/bom/media/MediaTestCase.js +10 -18
- package/source/class/qx/test/bom/media/Video.js +10 -18
- package/source/class/qx/test/bom/rest/Resource.js +3 -7
- package/source/class/qx/test/bom/rest/ResourceWithRemote.js +40 -56
- package/source/class/qx/test/bom/webfonts/Validator.js +12 -20
- package/source/class/qx/test/core/Object.js +3 -7
- package/source/class/qx/test/data/controller/List.js +18 -22
- package/source/class/qx/test/data/marshal/Json.js +10 -14
- package/source/class/qx/test/data/store/Json.js +337 -428
- package/source/class/qx/test/data/store/Jsonp.js +46 -66
- package/source/class/qx/test/data/store/RestWithRemote.js +10 -18
- package/source/class/qx/test/html/Element.js +4 -8
- package/source/class/qx/test/html/Iframe.js +48 -60
- package/source/class/qx/test/io/jsonrpc/Client.js +1 -1
- package/source/class/qx/test/io/request/JsonpWithRemote.js +6 -10
- package/source/class/qx/test/io/request/MRequest.js +13 -25
- package/source/class/qx/test/io/request/Xhr.js +5 -9
- package/source/class/qx/test/io/request/XhrWithRemote.js +50 -78
- package/source/class/qx/test/io/rest/Resource.js +3 -7
- package/source/class/qx/test/io/rest/ResourceWithRemote.js +41 -57
- package/source/class/qx/test/mobile/basic/Image.js +16 -24
- package/source/class/qx/test/mobile/container/Navigation.js +3 -7
- package/source/class/qx/test/mobile/container/Scroll.js +8 -12
- package/source/class/qx/test/mobile/page/Page.js +24 -44
- package/source/class/qx/test/performance/Property.js +2 -2
- package/source/class/qx/test/ui/basic/Image.js +32 -52
- package/source/class/qx/test/ui/core/Blocker.js +6 -14
- package/source/class/qx/test/ui/embed/Iframe.js +13 -21
- package/source/class/qx/test/ui/form/FileSelectorButton.js +32 -0
- package/source/class/qx/test/ui/form/FormValidator.js +147 -211
- package/source/class/qx/test/ui/form/Label.js +8 -16
- package/source/class/qx/test/ui/root/Inline.js +9 -13
- package/source/class/qx/test/ui/table/Table.js +6 -14
- package/source/class/qx/test/ui/toolbar/OverflowHandling.js +18 -30
- package/source/class/qx/test/ui/virtual/Pane.js +3 -7
- package/source/class/qx/test/util/DynamicScriptLoader.js +23 -42
- package/source/class/qx/theme/iconfont/LoadMaterialIcons.js +4 -4
- package/source/class/qx/theme/iconfont/LoadMaterialIconsOutlined.js +4 -4
- package/source/class/qx/theme/iconfont/LoadMaterialIconsRound.js +4 -4
- package/source/class/qx/theme/iconfont/LoadMaterialIconsSharp.js +4 -4
- package/source/class/qx/theme/iconfont/LoadMaterialIconsTwoTone.js +4 -4
- package/source/class/qx/theme/tangible/Appearance.js +22 -3
- package/source/class/qx/theme/tangible/ColorEngine.js +3 -3
- package/source/class/qx/theme/tangible/Decoration.js +3 -3
- package/source/class/qx/tool/cli/Watch.js +3 -7
- package/source/class/qx/tool/cli/api/AbstractApi.js +1 -1
- package/source/class/qx/tool/cli/api/CompilerApi.js +3 -7
- package/source/class/qx/tool/cli/commands/Compile.js +9 -1
- package/source/class/qx/tool/cli/commands/Lint.js +21 -17
- package/source/class/qx/tool/compiler/ClassFile.js +22 -12
- package/source/class/qx/tool/compiler/Es6ify.js +12 -5
- package/source/class/qx/tool/compiler/TargetError.js +3 -4
- package/source/class/qx/tool/compiler/app/Application.js +14 -0
- package/source/class/qx/tool/compiler/app/WebFont.js +8 -6
- package/source/class/qx/tool/compiler/targets/SourceCodeCopier.js +1 -1
- package/source/class/qx/tool/compiler/targets/Target.js +7 -5
- package/source/class/qx/tool/compiler/targets/meta/AbstractJavascriptMeta.js +1 -1
- package/source/class/qx/tool/compiler/targets/meta/Browserify.js +88 -52
- package/source/class/qx/tool/compiler/targets/meta/Uglify.js +11 -3
- package/source/class/qx/tool/utils/Json.js +1 -1
- package/source/class/qx/tool/utils/Website.js +2 -2
- package/source/class/qx/ui/basic/Label.js +13 -17
- package/source/class/qx/ui/core/MPlacement.js +13 -21
- package/source/class/qx/ui/core/Widget.js +2 -3
- package/source/class/qx/ui/core/scroll/NativeScrollBar.js +3 -7
- package/source/class/qx/ui/core/scroll/ScrollBar.js +3 -7
- package/source/class/qx/ui/embed/Iframe.js +40 -50
- package/source/class/qx/ui/form/AbstractField.js +8 -12
- package/source/class/qx/ui/form/ComboBox.js +7 -15
- package/source/class/qx/ui/form/DateField.js +9 -18
- package/source/class/qx/ui/form/FileSelectorButton.js +157 -0
- package/source/class/qx/ui/form/Spinner.js +7 -15
- package/source/class/qx/ui/form/TextArea.js +3 -7
- package/source/class/qx/ui/form/VirtualComboBox.js +8 -16
- package/source/class/qx/ui/form/VirtualSelectBox.js +21 -37
- package/source/class/qx/ui/layout/Canvas.js +2 -2
- package/source/class/qx/ui/mobile/container/MIScroll.js +3 -7
- package/source/class/qx/ui/progressive/headfoot/Progress.js +22 -34
- package/source/class/qx/ui/progressive/renderer/table/Row.js +1 -1
- package/source/class/qx/ui/splitpane/Pane.js +14 -22
- package/source/class/qx/ui/table/MTableContextMenu.js +63 -71
- package/source/class/qx/ui/table/Table.js +3 -7
- package/source/class/qx/ui/table/model/Abstract.js +5 -2
- package/source/class/qx/ui/table/pane/Scroller.js +8 -12
- package/source/class/qx/ui/toolbar/FileSelectorButton.js +57 -0
- package/source/class/qx/ui/toolbar/Part.js +3 -7
- package/source/class/qx/ui/tree/VirtualTree.js +5 -9
- package/source/class/qx/ui/treevirtual/MNode.js +5 -3
- package/source/class/qx/ui/treevirtual/TreeVirtual.js +3 -7
- package/source/class/qx/ui/virtual/core/Pane.js +30 -42
- package/source/class/qx/util/DynamicScriptLoader.js +31 -43
- package/source/resource/qx/iconfont/MaterialIcons/materialicons-v126.eot +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/{materialicons-v70.ttf → materialicons-v126.ttf} +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialicons-v126.woff +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialicons-v126.woff2 +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v101.eot +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v101.otf +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v101.woff +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v101.woff2 +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v100.eot +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v100.otf +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v100.woff +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v100.woff2 +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v101.eot +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v101.otf +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v101.woff +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v101.woff2 +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v104.eot +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v104.otf +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v104.woff +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v104.woff2 +0 -0
- package/source/resource/qx/tool/cli/templates/loader/loader-browser.tmpl.js +1 -2
- package/source/resource/qx/tool/schema/compile-1-0-0.json +11 -1
- package/source/resource/qx/iconfont/MaterialIcons/materialicons-v70.eot +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialicons-v70.woff +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialicons-v70.woff2 +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v38.eot +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v38.otf +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v38.woff +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v38.woff2 +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v37.eot +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v37.otf +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v37.woff +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v37.woff2 +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v38.eot +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v38.otf +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v38.woff +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v38.woff2 +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v36.eot +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v36.otf +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v36.woff +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v36.woff2 +0 -0
|
@@ -332,53 +332,41 @@ qx.Class.define("qx.test.Promise", {
|
|
|
332
332
|
var syncObj = new SyncClazz();
|
|
333
333
|
|
|
334
334
|
var p1 = new qx.Promise();
|
|
335
|
-
asyncObj.addListenerOnce(
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
p1.resolve();
|
|
341
|
-
},
|
|
342
|
-
this
|
|
343
|
-
);
|
|
335
|
+
asyncObj.addListenerOnce("changeAlphaAsync", evt => {
|
|
336
|
+
var data = evt.getData();
|
|
337
|
+
this.assertTrue(data instanceof qx.Promise);
|
|
338
|
+
p1.resolve();
|
|
339
|
+
});
|
|
344
340
|
|
|
345
341
|
var p2 = new qx.Promise();
|
|
346
342
|
var bravoEvents = 0;
|
|
347
|
-
var id = syncObj.addListener(
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
this
|
|
366
|
-
);
|
|
343
|
+
var id = syncObj.addListener("changeBravo", evt => {
|
|
344
|
+
bravoEvents++;
|
|
345
|
+
this.assertTrue(bravoEvents <= 2);
|
|
346
|
+
var data = evt.getData();
|
|
347
|
+
|
|
348
|
+
// First event is .bind() setting the initial value
|
|
349
|
+
if (bravoEvents == 1) {
|
|
350
|
+
this.assertNull(data);
|
|
351
|
+
|
|
352
|
+
// Second event was caused by asyncObj.setAlphaAsync()
|
|
353
|
+
} else if (bravoEvents == 2) {
|
|
354
|
+
this.assertEquals("zyx", data);
|
|
355
|
+
syncObj.removeListenerById(id);
|
|
356
|
+
p2.resolve();
|
|
357
|
+
}
|
|
358
|
+
});
|
|
367
359
|
|
|
368
360
|
asyncObj.getAlphaAsync();
|
|
369
361
|
asyncObj.bind("alphaAsync", syncObj, "bravo");
|
|
370
362
|
asyncObj.setAlphaAsync("zyx");
|
|
371
363
|
qx.Promise.all([p1, p2]).then(function () {
|
|
372
364
|
var p3 = new qx.Promise();
|
|
373
|
-
syncObj.addListenerOnce(
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
p3.resolve();
|
|
379
|
-
},
|
|
380
|
-
this
|
|
381
|
-
);
|
|
365
|
+
syncObj.addListenerOnce("changeBravo", evt => {
|
|
366
|
+
var data = evt.getData();
|
|
367
|
+
this.assertEquals("wvu", data);
|
|
368
|
+
p3.resolve();
|
|
369
|
+
});
|
|
382
370
|
|
|
383
371
|
asyncObj.setAlphaAsync("wvu");
|
|
384
372
|
p3.then(function () {
|
|
@@ -395,30 +383,22 @@ qx.Class.define("qx.test.Promise", {
|
|
|
395
383
|
var syncObj = new SyncClazz();
|
|
396
384
|
|
|
397
385
|
var p1 = new qx.Promise();
|
|
398
|
-
asyncObj.addListenerOnce(
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
p1.resolve();
|
|
404
|
-
},
|
|
405
|
-
this
|
|
406
|
-
);
|
|
386
|
+
asyncObj.addListenerOnce("changeAlphaAsync", evt => {
|
|
387
|
+
var data = evt.getData();
|
|
388
|
+
this.assertEquals("def", data);
|
|
389
|
+
p1.resolve();
|
|
390
|
+
});
|
|
407
391
|
|
|
408
392
|
syncObj.bind("bravo", asyncObj, "alphaAsync");
|
|
409
393
|
syncObj.setBravo("def");
|
|
410
394
|
|
|
411
395
|
p1.then(function () {
|
|
412
396
|
var p2 = new qx.Promise();
|
|
413
|
-
asyncObj.addListenerOnce(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
p2.resolve();
|
|
419
|
-
},
|
|
420
|
-
this
|
|
421
|
-
);
|
|
397
|
+
asyncObj.addListenerOnce("changeAlphaAsync", evt => {
|
|
398
|
+
var data = evt.getData();
|
|
399
|
+
this.assertEquals("ghi", data);
|
|
400
|
+
p2.resolve();
|
|
401
|
+
});
|
|
422
402
|
|
|
423
403
|
syncObj.setBravo("ghi");
|
|
424
404
|
return p2.then(function () {
|
|
@@ -592,42 +572,38 @@ qx.Class.define("qx.test.Promise", {
|
|
|
592
572
|
bindPromise = qx.Promise.resolve(true);
|
|
593
573
|
}
|
|
594
574
|
return bindPromise.then(function () {
|
|
595
|
-
obj.addListener(
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
"
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
delay
|
|
608
|
-
);
|
|
575
|
+
obj.addListener("changeAlpha", evt => {
|
|
576
|
+
var obj = evt.getTarget();
|
|
577
|
+
var data = evt.getData();
|
|
578
|
+
var delay = (5 - i + 1) * 100;
|
|
579
|
+
console.log(
|
|
580
|
+
"pre changeAlpha " +
|
|
581
|
+
obj.getValue() +
|
|
582
|
+
" = " +
|
|
583
|
+
data +
|
|
584
|
+
" after " +
|
|
585
|
+
delay
|
|
586
|
+
);
|
|
609
587
|
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
this
|
|
630
|
-
);
|
|
588
|
+
return new qx.Promise(function (resolve) {
|
|
589
|
+
setTimeout(function () {
|
|
590
|
+
if (str.length) {
|
|
591
|
+
str += ",";
|
|
592
|
+
}
|
|
593
|
+
str += obj.getValue() + ":" + data;
|
|
594
|
+
console.log(
|
|
595
|
+
"changeAlpha " +
|
|
596
|
+
obj.getValue() +
|
|
597
|
+
" = " +
|
|
598
|
+
data +
|
|
599
|
+
" after " +
|
|
600
|
+
delay
|
|
601
|
+
);
|
|
602
|
+
|
|
603
|
+
resolve();
|
|
604
|
+
}, delay);
|
|
605
|
+
});
|
|
606
|
+
});
|
|
631
607
|
|
|
632
608
|
objs[i] = obj;
|
|
633
609
|
});
|
|
@@ -171,16 +171,12 @@ qx.Class.define("qx.test.bom.History", {
|
|
|
171
171
|
// "request" event just will be fired, if a user goes back or forward in
|
|
172
172
|
// the history
|
|
173
173
|
var self = this;
|
|
174
|
-
this.__history.addListenerOnce(
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}, self);
|
|
181
|
-
},
|
|
182
|
-
this
|
|
183
|
-
);
|
|
174
|
+
this.__history.addListenerOnce("request", () => {
|
|
175
|
+
self.resume(function () {
|
|
176
|
+
// "request" event has been fired
|
|
177
|
+
this.assertTrue(true);
|
|
178
|
+
}, self);
|
|
179
|
+
});
|
|
184
180
|
|
|
185
181
|
this.__history.setState("bar");
|
|
186
182
|
history.back();
|
|
@@ -188,15 +184,11 @@ qx.Class.define("qx.test.bom.History", {
|
|
|
188
184
|
},
|
|
189
185
|
|
|
190
186
|
testRequestEventAddHistory() {
|
|
191
|
-
this.__history.addListenerOnce(
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}, this);
|
|
197
|
-
},
|
|
198
|
-
this
|
|
199
|
-
);
|
|
187
|
+
this.__history.addListenerOnce("request", ev => {
|
|
188
|
+
this.resume(function () {
|
|
189
|
+
this.assertEquals("baz", ev.getData());
|
|
190
|
+
}, this);
|
|
191
|
+
});
|
|
200
192
|
|
|
201
193
|
var self = this;
|
|
202
194
|
window.setTimeout(function () {
|
|
@@ -64,14 +64,10 @@ qx.Class.define("qx.test.bom.WebWorker", {
|
|
|
64
64
|
this._worker = new qx.bom.WebWorker(this._url);
|
|
65
65
|
|
|
66
66
|
this._send = function (message, fn) {
|
|
67
|
-
this._worker.addListener(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
fn.call(this, message, e);
|
|
72
|
-
},
|
|
73
|
-
this
|
|
74
|
-
);
|
|
67
|
+
this._worker.addListener("message", e => {
|
|
68
|
+
this.assertType(e.getData(), typeof message);
|
|
69
|
+
fn.call(this, message, e);
|
|
70
|
+
});
|
|
75
71
|
|
|
76
72
|
this._worker.postMessage(message);
|
|
77
73
|
};
|
|
@@ -97,13 +93,9 @@ qx.Class.define("qx.test.bom.WebWorker", {
|
|
|
97
93
|
testErrorEvent() {
|
|
98
94
|
var message = "error";
|
|
99
95
|
|
|
100
|
-
this._worker.addListener(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
this.assertTrue(/error/.test(e.getData()));
|
|
104
|
-
},
|
|
105
|
-
this
|
|
106
|
-
);
|
|
96
|
+
this._worker.addListener("error", e => {
|
|
97
|
+
this.assertTrue(/error/.test(e.getData()));
|
|
98
|
+
});
|
|
107
99
|
|
|
108
100
|
this._worker.postMessage(message);
|
|
109
101
|
},
|
|
@@ -163,15 +163,11 @@ qx.Class.define("qx.test.bom.media.MediaTestCase", {
|
|
|
163
163
|
},
|
|
164
164
|
|
|
165
165
|
testVolumeChangeEvent() {
|
|
166
|
-
this._media.addListener(
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}, this);
|
|
172
|
-
},
|
|
173
|
-
this
|
|
174
|
-
);
|
|
166
|
+
this._media.addListener("volumechange", e => {
|
|
167
|
+
this.resume(function () {
|
|
168
|
+
this.assertEquals(0.5, this._media.getVolume());
|
|
169
|
+
}, this);
|
|
170
|
+
});
|
|
175
171
|
|
|
176
172
|
this._media.setVolume(0.5);
|
|
177
173
|
|
|
@@ -208,15 +204,11 @@ qx.Class.define("qx.test.bom.media.MediaTestCase", {
|
|
|
208
204
|
}
|
|
209
205
|
this.assertTrue(this._media.isPaused());
|
|
210
206
|
|
|
211
|
-
this._media.addListener(
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}, this);
|
|
217
|
-
},
|
|
218
|
-
this
|
|
219
|
-
);
|
|
207
|
+
this._media.addListener("play", e => {
|
|
208
|
+
this.resume(function () {
|
|
209
|
+
this.assertFalse(this._media.isPaused());
|
|
210
|
+
}, this);
|
|
211
|
+
});
|
|
220
212
|
|
|
221
213
|
this._media.play();
|
|
222
214
|
|
|
@@ -73,26 +73,18 @@ qx.Class.define("qx.test.bom.media.Video", {
|
|
|
73
73
|
this.assertEquals(0, this._media.getVideoHeight());
|
|
74
74
|
|
|
75
75
|
//we know the video width and hight when meta data is loaded
|
|
76
|
-
this._media.addListener(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
this.assertEquals(704, v.getVideoHeight());
|
|
82
|
-
},
|
|
83
|
-
this
|
|
84
|
-
);
|
|
76
|
+
this._media.addListener("loadedmetadata", e => {
|
|
77
|
+
var v = e._target;
|
|
78
|
+
this.assertEquals(720, v.getVideoWidth());
|
|
79
|
+
this.assertEquals(704, v.getVideoHeight());
|
|
80
|
+
});
|
|
85
81
|
|
|
86
82
|
//or when the entire video is loaded
|
|
87
|
-
this._media.addListener(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
this.assertEquals(704, v.getVideoHeight());
|
|
93
|
-
},
|
|
94
|
-
this
|
|
95
|
-
);
|
|
83
|
+
this._media.addListener("loadeddata", e => {
|
|
84
|
+
var v = e._target;
|
|
85
|
+
this.assertEquals(720, v.getVideoWidth());
|
|
86
|
+
this.assertEquals(704, v.getVideoHeight());
|
|
87
|
+
});
|
|
96
88
|
}
|
|
97
89
|
}
|
|
98
90
|
});
|
|
@@ -795,13 +795,9 @@ qx.Class.define("qx.test.bom.rest.Resource", {
|
|
|
795
795
|
|
|
796
796
|
this.stub(req, "dispose");
|
|
797
797
|
|
|
798
|
-
res.addListener(
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
responses.push(e.response);
|
|
802
|
-
},
|
|
803
|
-
this
|
|
804
|
-
);
|
|
798
|
+
res.addListener("getSuccess", e => {
|
|
799
|
+
responses.push(e.response);
|
|
800
|
+
});
|
|
805
801
|
|
|
806
802
|
res.longPoll("get");
|
|
807
803
|
|
|
@@ -42,15 +42,11 @@ qx.Class.define("qx.test.bom.rest.ResourceWithRemote", {
|
|
|
42
42
|
res = this.res;
|
|
43
43
|
|
|
44
44
|
res.map("get", "GET", url);
|
|
45
|
-
res.addListener(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}, this);
|
|
51
|
-
},
|
|
52
|
-
this
|
|
53
|
-
);
|
|
45
|
+
res.addListener("getSuccess", e => {
|
|
46
|
+
this.resume(function () {
|
|
47
|
+
this.assertEquals("SAMPLE", e.response);
|
|
48
|
+
}, this);
|
|
49
|
+
});
|
|
54
50
|
|
|
55
51
|
res.get();
|
|
56
52
|
this.wait();
|
|
@@ -61,15 +57,11 @@ qx.Class.define("qx.test.bom.rest.ResourceWithRemote", {
|
|
|
61
57
|
res = this.res;
|
|
62
58
|
|
|
63
59
|
res.map("get", "GET", url);
|
|
64
|
-
res.addListener(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}, this);
|
|
70
|
-
},
|
|
71
|
-
this
|
|
72
|
-
);
|
|
60
|
+
res.addListener("error", e => {
|
|
61
|
+
this.resume(function () {
|
|
62
|
+
this.assertEquals("get", e.action);
|
|
63
|
+
}, this);
|
|
64
|
+
});
|
|
73
65
|
|
|
74
66
|
res.get();
|
|
75
67
|
this.wait();
|
|
@@ -86,27 +78,23 @@ qx.Class.define("qx.test.bom.rest.ResourceWithRemote", {
|
|
|
86
78
|
|
|
87
79
|
// Response headers must contain explicit cache control for this
|
|
88
80
|
// to work in IE
|
|
89
|
-
res.addListener(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
this
|
|
109
|
-
);
|
|
81
|
+
res.addListener("getSuccess", e => {
|
|
82
|
+
var response = e.response;
|
|
83
|
+
count++;
|
|
84
|
+
|
|
85
|
+
this.assert(response.length === 32, "Response must be MD5");
|
|
86
|
+
this.assertNotEquals(
|
|
87
|
+
previousResponse,
|
|
88
|
+
response,
|
|
89
|
+
"Response must be different from previous"
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
previousResponse = response;
|
|
93
|
+
|
|
94
|
+
if (count >= 10) {
|
|
95
|
+
this.resume();
|
|
96
|
+
}
|
|
97
|
+
});
|
|
110
98
|
|
|
111
99
|
res.poll("get", 100);
|
|
112
100
|
this.wait();
|
|
@@ -119,23 +107,19 @@ qx.Class.define("qx.test.bom.rest.ResourceWithRemote", {
|
|
|
119
107
|
responses = [];
|
|
120
108
|
|
|
121
109
|
res.map("get", "GET", url);
|
|
122
|
-
res.addListener(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
this
|
|
138
|
-
);
|
|
110
|
+
res.addListener("getSuccess", e => {
|
|
111
|
+
var response = e.response;
|
|
112
|
+
responses.push(response);
|
|
113
|
+
|
|
114
|
+
if (++count >= 5) {
|
|
115
|
+
this.resume(function () {
|
|
116
|
+
this.assert(
|
|
117
|
+
parseFloat(responses[4]) > parseFloat(responses[0]),
|
|
118
|
+
"Must increase"
|
|
119
|
+
);
|
|
120
|
+
}, this);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
139
123
|
|
|
140
124
|
res.longPoll("get");
|
|
141
125
|
this.wait();
|
|
@@ -40,16 +40,12 @@ qx.Class.define("qx.test.bom.webfonts.Validator", {
|
|
|
40
40
|
|
|
41
41
|
testValidFont() {
|
|
42
42
|
this.__val.setFontFamily("monospace, courier");
|
|
43
|
-
this.__val.addListener(
|
|
44
|
-
|
|
45
|
-
function (ev) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}, this);
|
|
50
|
-
},
|
|
51
|
-
this
|
|
52
|
-
);
|
|
43
|
+
this.__val.addListener("changeStatus", ev => {
|
|
44
|
+
var result = ev.getData();
|
|
45
|
+
this.resume(function (ev) {
|
|
46
|
+
this.assertTrue(result.valid);
|
|
47
|
+
}, this);
|
|
48
|
+
});
|
|
53
49
|
|
|
54
50
|
var that = this;
|
|
55
51
|
window.setTimeout(function () {
|
|
@@ -61,16 +57,12 @@ qx.Class.define("qx.test.bom.webfonts.Validator", {
|
|
|
61
57
|
testInvalidFont() {
|
|
62
58
|
this.__val.setFontFamily("zzzzzzzzzzzzzzz");
|
|
63
59
|
this.__val.setTimeout(250);
|
|
64
|
-
this.__val.addListener(
|
|
65
|
-
|
|
66
|
-
function (ev) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}, this);
|
|
71
|
-
},
|
|
72
|
-
this
|
|
73
|
-
);
|
|
60
|
+
this.__val.addListener("changeStatus", ev => {
|
|
61
|
+
var result = ev.getData();
|
|
62
|
+
this.resume(function (ev) {
|
|
63
|
+
this.assertFalse(result.valid);
|
|
64
|
+
}, this);
|
|
65
|
+
});
|
|
74
66
|
|
|
75
67
|
var that = this;
|
|
76
68
|
window.setTimeout(function () {
|
|
@@ -134,13 +134,9 @@ qx.Class.define("qx.test.core.Object", {
|
|
|
134
134
|
|
|
135
135
|
testRemoveListenerByIdAsync() {
|
|
136
136
|
var executed = false;
|
|
137
|
-
var id = this.addListener(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
executed = true;
|
|
141
|
-
},
|
|
142
|
-
this
|
|
143
|
-
);
|
|
137
|
+
var id = this.addListener("testRemoveListenerByIdAsync", () => {
|
|
138
|
+
executed = true;
|
|
139
|
+
});
|
|
144
140
|
|
|
145
141
|
this.removeListenerById(id);
|
|
146
142
|
|
|
@@ -836,28 +836,24 @@ qx.Class.define("qx.test.data.controller.List", {
|
|
|
836
836
|
|
|
837
837
|
this.__controller.setModel(new qx.data.Array(["1", "2", "3"]));
|
|
838
838
|
|
|
839
|
-
this.__controller.addListener(
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
this.
|
|
843
|
-
|
|
844
|
-
this.
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
this.
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
}, this);
|
|
858
|
-
},
|
|
859
|
-
this
|
|
860
|
-
);
|
|
839
|
+
this.__controller.addListener("changeSelection", () => {
|
|
840
|
+
this.resume(function () {
|
|
841
|
+
// test for the first selected item (one selection)
|
|
842
|
+
this.assertEquals(
|
|
843
|
+
1,
|
|
844
|
+
this.__controller.getSelection().length,
|
|
845
|
+
"Selection has a wrong length."
|
|
846
|
+
);
|
|
847
|
+
|
|
848
|
+
this.assertEquals(
|
|
849
|
+
"1",
|
|
850
|
+
this.__controller.getSelection().getItem(0),
|
|
851
|
+
"Selection does not work."
|
|
852
|
+
);
|
|
853
|
+
|
|
854
|
+
selectBox.dispose();
|
|
855
|
+
}, this);
|
|
856
|
+
});
|
|
861
857
|
|
|
862
858
|
this.wait();
|
|
863
859
|
},
|
|
@@ -899,21 +899,17 @@ qx.Class.define("qx.test.data.marshal.Json", {
|
|
|
899
899
|
model.setFonts(fonts);
|
|
900
900
|
model.getFonts().push("one", "two", "three");
|
|
901
901
|
|
|
902
|
-
model.addListener(
|
|
903
|
-
"
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
"Wrong old data"
|
|
911
|
-
);
|
|
902
|
+
model.addListener("changeBubble", e => {
|
|
903
|
+
this.assertEquals("fonts[0-2]", e.getData().name, "Wrong name");
|
|
904
|
+
this.assertString(e.getData().name, "name is not a String.");
|
|
905
|
+
this.assertArrayEquals(
|
|
906
|
+
["one", "two", "three"],
|
|
907
|
+
e.getData().old,
|
|
908
|
+
"Wrong old data"
|
|
909
|
+
);
|
|
912
910
|
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
this
|
|
916
|
-
);
|
|
911
|
+
this.assertEquals(0, e.getData().value.length, "Wrong data");
|
|
912
|
+
});
|
|
917
913
|
|
|
918
914
|
// remove all
|
|
919
915
|
model.getFonts().removeAll();
|