@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.
Files changed (153) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/Manifest.json +22 -22
  3. package/lib/compiler/compile-info.json +66 -66
  4. package/lib/compiler/index.js +406 -335
  5. package/lib/resource/qx/tool/cli/templates/loader/loader-browser.tmpl.js +1 -2
  6. package/lib/resource/qx/tool/cli/templates/skeleton/mobile/source/theme/custom/css/custom.css.map +1 -1
  7. package/lib/resource/qx/tool/schema/compile-1-0-0.json +11 -1
  8. package/npm-shrinkwrap.json +793 -744
  9. package/package.json +9 -8
  10. package/source/class/qx/Interface.js +13 -15
  11. package/source/class/qx/dev/unit/MTestLoader.js +25 -33
  12. package/source/class/qx/dev/unit/TestResult.js +9 -13
  13. package/source/class/qx/event/handler/Focus.js +1 -1
  14. package/source/class/qx/html/Element.js +1 -1
  15. package/source/class/qx/html/Node.js +0 -1
  16. package/source/class/qx/io/request/AbstractRequest.js +42 -66
  17. package/source/class/qx/test/Interface.js +70 -6
  18. package/source/class/qx/test/Mixin.js +20 -17
  19. package/source/class/qx/test/Promise.js +67 -91
  20. package/source/class/qx/test/bom/History.js +11 -19
  21. package/source/class/qx/test/bom/WebWorker.js +7 -15
  22. package/source/class/qx/test/bom/media/MediaTestCase.js +10 -18
  23. package/source/class/qx/test/bom/media/Video.js +10 -18
  24. package/source/class/qx/test/bom/rest/Resource.js +3 -7
  25. package/source/class/qx/test/bom/rest/ResourceWithRemote.js +40 -56
  26. package/source/class/qx/test/bom/webfonts/Validator.js +12 -20
  27. package/source/class/qx/test/core/Object.js +3 -7
  28. package/source/class/qx/test/data/controller/List.js +18 -22
  29. package/source/class/qx/test/data/marshal/Json.js +10 -14
  30. package/source/class/qx/test/data/store/Json.js +337 -428
  31. package/source/class/qx/test/data/store/Jsonp.js +46 -66
  32. package/source/class/qx/test/data/store/RestWithRemote.js +10 -18
  33. package/source/class/qx/test/html/Element.js +4 -8
  34. package/source/class/qx/test/html/Iframe.js +48 -60
  35. package/source/class/qx/test/io/jsonrpc/Client.js +1 -1
  36. package/source/class/qx/test/io/request/JsonpWithRemote.js +6 -10
  37. package/source/class/qx/test/io/request/MRequest.js +13 -25
  38. package/source/class/qx/test/io/request/Xhr.js +5 -9
  39. package/source/class/qx/test/io/request/XhrWithRemote.js +50 -78
  40. package/source/class/qx/test/io/rest/Resource.js +3 -7
  41. package/source/class/qx/test/io/rest/ResourceWithRemote.js +41 -57
  42. package/source/class/qx/test/mobile/basic/Image.js +16 -24
  43. package/source/class/qx/test/mobile/container/Navigation.js +3 -7
  44. package/source/class/qx/test/mobile/container/Scroll.js +8 -12
  45. package/source/class/qx/test/mobile/page/Page.js +24 -44
  46. package/source/class/qx/test/performance/Property.js +2 -2
  47. package/source/class/qx/test/ui/basic/Image.js +32 -52
  48. package/source/class/qx/test/ui/core/Blocker.js +6 -14
  49. package/source/class/qx/test/ui/embed/Iframe.js +13 -21
  50. package/source/class/qx/test/ui/form/FileSelectorButton.js +32 -0
  51. package/source/class/qx/test/ui/form/FormValidator.js +147 -211
  52. package/source/class/qx/test/ui/form/Label.js +8 -16
  53. package/source/class/qx/test/ui/root/Inline.js +9 -13
  54. package/source/class/qx/test/ui/table/Table.js +6 -14
  55. package/source/class/qx/test/ui/toolbar/OverflowHandling.js +18 -30
  56. package/source/class/qx/test/ui/virtual/Pane.js +3 -7
  57. package/source/class/qx/test/util/DynamicScriptLoader.js +23 -42
  58. package/source/class/qx/theme/iconfont/LoadMaterialIcons.js +4 -4
  59. package/source/class/qx/theme/iconfont/LoadMaterialIconsOutlined.js +4 -4
  60. package/source/class/qx/theme/iconfont/LoadMaterialIconsRound.js +4 -4
  61. package/source/class/qx/theme/iconfont/LoadMaterialIconsSharp.js +4 -4
  62. package/source/class/qx/theme/iconfont/LoadMaterialIconsTwoTone.js +4 -4
  63. package/source/class/qx/theme/tangible/Appearance.js +22 -3
  64. package/source/class/qx/theme/tangible/ColorEngine.js +3 -3
  65. package/source/class/qx/theme/tangible/Decoration.js +3 -3
  66. package/source/class/qx/tool/cli/Watch.js +3 -7
  67. package/source/class/qx/tool/cli/api/AbstractApi.js +1 -1
  68. package/source/class/qx/tool/cli/api/CompilerApi.js +3 -7
  69. package/source/class/qx/tool/cli/commands/Compile.js +9 -1
  70. package/source/class/qx/tool/cli/commands/Lint.js +21 -17
  71. package/source/class/qx/tool/compiler/ClassFile.js +22 -12
  72. package/source/class/qx/tool/compiler/Es6ify.js +12 -5
  73. package/source/class/qx/tool/compiler/TargetError.js +3 -4
  74. package/source/class/qx/tool/compiler/app/Application.js +14 -0
  75. package/source/class/qx/tool/compiler/app/WebFont.js +8 -6
  76. package/source/class/qx/tool/compiler/targets/SourceCodeCopier.js +1 -1
  77. package/source/class/qx/tool/compiler/targets/Target.js +7 -5
  78. package/source/class/qx/tool/compiler/targets/meta/AbstractJavascriptMeta.js +1 -1
  79. package/source/class/qx/tool/compiler/targets/meta/Browserify.js +88 -52
  80. package/source/class/qx/tool/compiler/targets/meta/Uglify.js +11 -3
  81. package/source/class/qx/tool/utils/Json.js +1 -1
  82. package/source/class/qx/tool/utils/Website.js +2 -2
  83. package/source/class/qx/ui/basic/Label.js +13 -17
  84. package/source/class/qx/ui/core/MPlacement.js +13 -21
  85. package/source/class/qx/ui/core/Widget.js +2 -3
  86. package/source/class/qx/ui/core/scroll/NativeScrollBar.js +3 -7
  87. package/source/class/qx/ui/core/scroll/ScrollBar.js +3 -7
  88. package/source/class/qx/ui/embed/Iframe.js +40 -50
  89. package/source/class/qx/ui/form/AbstractField.js +8 -12
  90. package/source/class/qx/ui/form/ComboBox.js +7 -15
  91. package/source/class/qx/ui/form/DateField.js +9 -18
  92. package/source/class/qx/ui/form/FileSelectorButton.js +157 -0
  93. package/source/class/qx/ui/form/Spinner.js +7 -15
  94. package/source/class/qx/ui/form/TextArea.js +3 -7
  95. package/source/class/qx/ui/form/VirtualComboBox.js +8 -16
  96. package/source/class/qx/ui/form/VirtualSelectBox.js +21 -37
  97. package/source/class/qx/ui/layout/Canvas.js +2 -2
  98. package/source/class/qx/ui/mobile/container/MIScroll.js +3 -7
  99. package/source/class/qx/ui/progressive/headfoot/Progress.js +22 -34
  100. package/source/class/qx/ui/progressive/renderer/table/Row.js +1 -1
  101. package/source/class/qx/ui/splitpane/Pane.js +14 -22
  102. package/source/class/qx/ui/table/MTableContextMenu.js +63 -71
  103. package/source/class/qx/ui/table/Table.js +3 -7
  104. package/source/class/qx/ui/table/model/Abstract.js +5 -2
  105. package/source/class/qx/ui/table/pane/Scroller.js +8 -12
  106. package/source/class/qx/ui/toolbar/FileSelectorButton.js +57 -0
  107. package/source/class/qx/ui/toolbar/Part.js +3 -7
  108. package/source/class/qx/ui/tree/VirtualTree.js +5 -9
  109. package/source/class/qx/ui/treevirtual/MNode.js +5 -3
  110. package/source/class/qx/ui/treevirtual/TreeVirtual.js +3 -7
  111. package/source/class/qx/ui/virtual/core/Pane.js +30 -42
  112. package/source/class/qx/util/DynamicScriptLoader.js +31 -43
  113. package/source/resource/qx/iconfont/MaterialIcons/materialicons-v126.eot +0 -0
  114. package/source/resource/qx/iconfont/MaterialIcons/{materialicons-v70.ttf → materialicons-v126.ttf} +0 -0
  115. package/source/resource/qx/iconfont/MaterialIcons/materialicons-v126.woff +0 -0
  116. package/source/resource/qx/iconfont/MaterialIcons/materialicons-v126.woff2 +0 -0
  117. package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v101.eot +0 -0
  118. package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v101.otf +0 -0
  119. package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v101.woff +0 -0
  120. package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v101.woff2 +0 -0
  121. package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v100.eot +0 -0
  122. package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v100.otf +0 -0
  123. package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v100.woff +0 -0
  124. package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v100.woff2 +0 -0
  125. package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v101.eot +0 -0
  126. package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v101.otf +0 -0
  127. package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v101.woff +0 -0
  128. package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v101.woff2 +0 -0
  129. package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v104.eot +0 -0
  130. package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v104.otf +0 -0
  131. package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v104.woff +0 -0
  132. package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v104.woff2 +0 -0
  133. package/source/resource/qx/tool/cli/templates/loader/loader-browser.tmpl.js +1 -2
  134. package/source/resource/qx/tool/schema/compile-1-0-0.json +11 -1
  135. package/source/resource/qx/iconfont/MaterialIcons/materialicons-v70.eot +0 -0
  136. package/source/resource/qx/iconfont/MaterialIcons/materialicons-v70.woff +0 -0
  137. package/source/resource/qx/iconfont/MaterialIcons/materialicons-v70.woff2 +0 -0
  138. package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v38.eot +0 -0
  139. package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v38.otf +0 -0
  140. package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v38.woff +0 -0
  141. package/source/resource/qx/iconfont/MaterialIcons/materialiconsoutlined-v38.woff2 +0 -0
  142. package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v37.eot +0 -0
  143. package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v37.otf +0 -0
  144. package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v37.woff +0 -0
  145. package/source/resource/qx/iconfont/MaterialIcons/materialiconsround-v37.woff2 +0 -0
  146. package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v38.eot +0 -0
  147. package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v38.otf +0 -0
  148. package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v38.woff +0 -0
  149. package/source/resource/qx/iconfont/MaterialIcons/materialiconssharp-v38.woff2 +0 -0
  150. package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v36.eot +0 -0
  151. package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v36.otf +0 -0
  152. package/source/resource/qx/iconfont/MaterialIcons/materialiconstwotone-v36.woff +0 -0
  153. 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
- "changeAlphaAsync",
337
- function (evt) {
338
- var data = evt.getData();
339
- this.assertTrue(data instanceof qx.Promise);
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
- "changeBravo",
349
- function (evt) {
350
- bravoEvents++;
351
- this.assertTrue(bravoEvents <= 2);
352
- var data = evt.getData();
353
-
354
- // First event is .bind() setting the initial value
355
- if (bravoEvents == 1) {
356
- this.assertNull(data);
357
-
358
- // Second event was caused by asyncObj.setAlphaAsync()
359
- } else if (bravoEvents == 2) {
360
- this.assertEquals("zyx", data);
361
- syncObj.removeListenerById(id);
362
- p2.resolve();
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
- "changeBravo",
375
- function (evt) {
376
- var data = evt.getData();
377
- this.assertEquals("wvu", data);
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
- "changeAlphaAsync",
400
- function (evt) {
401
- var data = evt.getData();
402
- this.assertEquals("def", data);
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
- "changeAlphaAsync",
415
- function (evt) {
416
- var data = evt.getData();
417
- this.assertEquals("ghi", data);
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
- "changeAlpha",
597
- function (evt) {
598
- var obj = evt.getTarget();
599
- var data = evt.getData();
600
- var delay = (5 - i + 1) * 100;
601
- console.log(
602
- "pre changeAlpha " +
603
- obj.getValue() +
604
- " = " +
605
- data +
606
- " after " +
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
- return new qx.Promise(function (resolve) {
611
- setTimeout(function () {
612
- if (str.length) {
613
- str += ",";
614
- }
615
- str += obj.getValue() + ":" + data;
616
- console.log(
617
- "changeAlpha " +
618
- obj.getValue() +
619
- " = " +
620
- data +
621
- " after " +
622
- delay
623
- );
624
-
625
- resolve();
626
- }, delay);
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
- "request",
176
- function () {
177
- self.resume(function () {
178
- // "request" event has been fired
179
- this.assertTrue(true);
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
- "request",
193
- function (ev) {
194
- this.resume(function () {
195
- this.assertEquals("baz", ev.getData());
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
- "message",
69
- function (e) {
70
- this.assertType(e.getData(), typeof message);
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
- "error",
102
- function (e) {
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
- "volumechange",
168
- function (e) {
169
- this.resume(function () {
170
- this.assertEquals(0.5, this._media.getVolume());
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
- "play",
213
- function (e) {
214
- this.resume(function () {
215
- this.assertFalse(this._media.isPaused());
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
- "loadedmetadata",
78
- function (e) {
79
- var v = e._target;
80
- this.assertEquals(720, v.getVideoWidth());
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
- "loadeddata",
89
- function (e) {
90
- var v = e._target;
91
- this.assertEquals(720, v.getVideoWidth());
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
- "getSuccess",
800
- function (e) {
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
- "getSuccess",
47
- function (e) {
48
- this.resume(function () {
49
- this.assertEquals("SAMPLE", e.response);
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
- "error",
66
- function (e) {
67
- this.resume(function () {
68
- this.assertEquals("get", e.action);
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
- "getSuccess",
91
- function (e) {
92
- var response = e.response;
93
- count++;
94
-
95
- this.assert(response.length === 32, "Response must be MD5");
96
- this.assertNotEquals(
97
- previousResponse,
98
- response,
99
- "Response must be different from previous"
100
- );
101
-
102
- previousResponse = response;
103
-
104
- if (count >= 10) {
105
- this.resume();
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
- "getSuccess",
124
- function (e) {
125
- var response = e.response;
126
- responses.push(response);
127
-
128
- if (++count >= 5) {
129
- this.resume(function () {
130
- this.assert(
131
- parseFloat(responses[4]) > parseFloat(responses[0]),
132
- "Must increase"
133
- );
134
- }, this);
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
- "changeStatus",
45
- function (ev) {
46
- var result = ev.getData();
47
- this.resume(function (ev) {
48
- this.assertTrue(result.valid);
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
- "changeStatus",
66
- function (ev) {
67
- var result = ev.getData();
68
- this.resume(function (ev) {
69
- this.assertFalse(result.valid);
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
- "testRemoveListenerByIdAsync",
139
- function () {
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
- "changeSelection",
841
- function () {
842
- this.resume(function () {
843
- // test for the first selected item (one selection)
844
- this.assertEquals(
845
- 1,
846
- this.__controller.getSelection().length,
847
- "Selection has a wrong length."
848
- );
849
-
850
- this.assertEquals(
851
- "1",
852
- this.__controller.getSelection().getItem(0),
853
- "Selection does not work."
854
- );
855
-
856
- selectBox.dispose();
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
- "changeBubble",
904
- function (e) {
905
- this.assertEquals("fonts[0-2]", e.getData().name, "Wrong name");
906
- this.assertString(e.getData().name, "name is not a String.");
907
- this.assertArrayEquals(
908
- ["one", "two", "three"],
909
- e.getData().old,
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
- this.assertEquals(0, e.getData().value.length, "Wrong data");
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();