@qooxdoo/framework 7.1.1 → 7.2.0
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/Manifest.json +1 -1
- package/lib/compiler/compile-info.json +83 -83
- package/lib/compiler/index.js +279 -274
- package/lib/resource/qx/tool/cli/templates/skeleton/mobile/source/theme/custom/css/custom.css.map +1 -1
- package/npm-shrinkwrap.json +235 -11095
- package/package.json +6 -6
- 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/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/tangible/Appearance.js +22 -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 +3 -3
- package/source/class/qx/tool/cli/commands/Lint.js +8 -5
- package/source/class/qx/tool/compiler/ClassFile.js +22 -12
- package/source/class/qx/tool/compiler/Es6ify.js +7 -3
- package/source/class/qx/tool/compiler/TargetError.js +3 -4
- package/source/class/qx/tool/compiler/app/Application.js +3 -3
- 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 +2 -1
- package/source/class/qx/tool/compiler/targets/meta/AbstractJavascriptMeta.js +1 -1
- package/source/class/qx/tool/compiler/targets/meta/Browserify.js +77 -83
- package/source/class/qx/tool/compiler/targets/meta/Uglify.js +11 -3
- 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
|
@@ -510,18 +510,14 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
510
510
|
|
|
511
511
|
this.__manager.add(this.__username, asyncValidator);
|
|
512
512
|
|
|
513
|
-
this.__manager.addListener(
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
this.
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}, this);
|
|
522
|
-
},
|
|
523
|
-
this
|
|
524
|
-
);
|
|
513
|
+
this.__manager.addListener("complete", () => {
|
|
514
|
+
this.resume(function () {
|
|
515
|
+
// check the status after the complete
|
|
516
|
+
this.assertFalse(this.__manager.isValid());
|
|
517
|
+
this.assertFalse(this.__username.getValid());
|
|
518
|
+
this.assertEquals("fail", this.__username.getInvalidMessage());
|
|
519
|
+
}, this);
|
|
520
|
+
});
|
|
525
521
|
|
|
526
522
|
this.__manager.validate();
|
|
527
523
|
|
|
@@ -536,17 +532,13 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
536
532
|
this.__manager.add(this.__username, asyncValidator);
|
|
537
533
|
this.__username.setValue("affe");
|
|
538
534
|
|
|
539
|
-
this.__manager.addListener(
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
this.
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
}, this);
|
|
547
|
-
},
|
|
548
|
-
this
|
|
549
|
-
);
|
|
535
|
+
this.__manager.addListener("complete", () => {
|
|
536
|
+
this.resume(function () {
|
|
537
|
+
// check the status after the complete
|
|
538
|
+
this.assertTrue(this.__manager.isValid());
|
|
539
|
+
this.assertTrue(this.__username.getValid());
|
|
540
|
+
}, this);
|
|
541
|
+
});
|
|
550
542
|
|
|
551
543
|
this.__manager.validate();
|
|
552
544
|
|
|
@@ -570,26 +562,22 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
570
562
|
this.__manager.add(this.__password1, asyncValidator2);
|
|
571
563
|
this.__manager.add(this.__password2, asyncValidator3);
|
|
572
564
|
|
|
573
|
-
this.__manager.addListener(
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
this.
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}, this);
|
|
590
|
-
},
|
|
591
|
-
this
|
|
592
|
-
);
|
|
565
|
+
this.__manager.addListener("complete", () => {
|
|
566
|
+
this.resume(function () {
|
|
567
|
+
// check the status after the complete
|
|
568
|
+
this.assertFalse(this.__manager.isValid());
|
|
569
|
+
this.assertFalse(this.__username.getValid());
|
|
570
|
+
|
|
571
|
+
this.assertEquals("fail", this.__username.getInvalidMessage());
|
|
572
|
+
this.assertEquals("fail", this.__password1.getInvalidMessage());
|
|
573
|
+
this.assertEquals("fail", this.__password2.getInvalidMessage());
|
|
574
|
+
|
|
575
|
+
this.assertEquals(3, this.__manager.getInvalidMessages().length);
|
|
576
|
+
this.assertEquals("fail", this.__manager.getInvalidMessages()[0]);
|
|
577
|
+
this.assertEquals("fail", this.__manager.getInvalidMessages()[1]);
|
|
578
|
+
this.assertEquals("fail", this.__manager.getInvalidMessages()[2]);
|
|
579
|
+
}, this);
|
|
580
|
+
});
|
|
593
581
|
|
|
594
582
|
this.__manager.validate();
|
|
595
583
|
|
|
@@ -613,17 +601,13 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
613
601
|
this.__manager.add(this.__password1, asyncValidator2);
|
|
614
602
|
this.__manager.add(this.__password2, asyncValidator3);
|
|
615
603
|
|
|
616
|
-
this.__manager.addListener(
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
this.
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
}, this);
|
|
624
|
-
},
|
|
625
|
-
this
|
|
626
|
-
);
|
|
604
|
+
this.__manager.addListener("complete", () => {
|
|
605
|
+
this.resume(function () {
|
|
606
|
+
// check the status after the complete
|
|
607
|
+
this.assertTrue(this.__manager.isValid());
|
|
608
|
+
this.assertTrue(this.__username.getValid());
|
|
609
|
+
}, this);
|
|
610
|
+
});
|
|
627
611
|
|
|
628
612
|
// add values to all three input fields
|
|
629
613
|
this.__username.setValue("a");
|
|
@@ -667,19 +651,15 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
667
651
|
this.__password1.setValid(false);
|
|
668
652
|
this.__password2.setValid(false);
|
|
669
653
|
|
|
670
|
-
this.__manager.addListener(
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
this.
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}, this);
|
|
680
|
-
},
|
|
681
|
-
this
|
|
682
|
-
);
|
|
654
|
+
this.__manager.addListener("complete", () => {
|
|
655
|
+
this.resume(function () {
|
|
656
|
+
// check the status after the complete
|
|
657
|
+
this.assertFalse(this.__manager.isValid());
|
|
658
|
+
this.assertTrue(this.__username.getValid());
|
|
659
|
+
this.assertFalse(this.__password1.getValid());
|
|
660
|
+
this.assertTrue(this.__password2.getValid());
|
|
661
|
+
}, this);
|
|
662
|
+
});
|
|
683
663
|
|
|
684
664
|
this.__username.setValue("a");
|
|
685
665
|
this.__manager.validate();
|
|
@@ -704,21 +684,17 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
704
684
|
this.__manager.add(this.__password1, asyncValidator2);
|
|
705
685
|
this.__manager.add(this.__password2, asyncValidator3);
|
|
706
686
|
|
|
707
|
-
this.__manager.addListener(
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
this.
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}, this);
|
|
719
|
-
},
|
|
720
|
-
this
|
|
721
|
-
);
|
|
687
|
+
this.__manager.addListener("complete", () => {
|
|
688
|
+
this.resume(function () {
|
|
689
|
+
// check the status after the complete
|
|
690
|
+
this.assertFalse(this.__manager.isValid());
|
|
691
|
+
this.assertFalse(this.__username.getValid());
|
|
692
|
+
this.assertEquals("fail", this.__username.getInvalidMessage());
|
|
693
|
+
|
|
694
|
+
this.assertEquals("fail", this.__manager.getInvalidMessages()[0]);
|
|
695
|
+
this.assertEquals(1, this.__manager.getInvalidMessages().length);
|
|
696
|
+
}, this);
|
|
697
|
+
});
|
|
722
698
|
|
|
723
699
|
// add values to all three input fields
|
|
724
700
|
this.__password1.setValue("b");
|
|
@@ -750,19 +726,15 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
750
726
|
this.__manager.add(this.__password1, asyncValidator2);
|
|
751
727
|
this.__manager.add(this.__password2, asyncValidator3);
|
|
752
728
|
|
|
753
|
-
this.__manager.addListener(
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
this.
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
}, this);
|
|
763
|
-
},
|
|
764
|
-
this
|
|
765
|
-
);
|
|
729
|
+
this.__manager.addListener("complete", () => {
|
|
730
|
+
this.resume(function () {
|
|
731
|
+
// check the status after the complete
|
|
732
|
+
this.assertFalse(this.__manager.isValid());
|
|
733
|
+
this.assertTrue(this.__username.getValid());
|
|
734
|
+
this.assertTrue(this.__password1.getValid());
|
|
735
|
+
this.assertTrue(this.__password2.getValid());
|
|
736
|
+
}, this);
|
|
737
|
+
});
|
|
766
738
|
|
|
767
739
|
this.__manager.setValidator(
|
|
768
740
|
new qx.ui.form.validation.AsyncValidator(function (
|
|
@@ -803,19 +775,15 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
803
775
|
this.__manager.add(this.__password1, asyncValidator2);
|
|
804
776
|
this.__manager.add(this.__password2, asyncValidator3);
|
|
805
777
|
|
|
806
|
-
this.__manager.addListener(
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
this.
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
}, this);
|
|
816
|
-
},
|
|
817
|
-
this
|
|
818
|
-
);
|
|
778
|
+
this.__manager.addListener("complete", () => {
|
|
779
|
+
this.resume(function () {
|
|
780
|
+
// check the status after the complete
|
|
781
|
+
this.assertTrue(this.__manager.isValid());
|
|
782
|
+
this.assertTrue(this.__username.getValid());
|
|
783
|
+
this.assertTrue(this.__password1.getValid());
|
|
784
|
+
this.assertTrue(this.__password2.getValid());
|
|
785
|
+
}, this);
|
|
786
|
+
});
|
|
819
787
|
|
|
820
788
|
this.__manager.setValidator(
|
|
821
789
|
new qx.ui.form.validation.AsyncValidator(function (
|
|
@@ -851,19 +819,15 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
851
819
|
this.__manager.add(this.__password1, this.__notEmptyValidator);
|
|
852
820
|
this.__manager.add(this.__password2, this.__notEmptyValidator);
|
|
853
821
|
|
|
854
|
-
this.__manager.addListener(
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
this.
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}, this);
|
|
864
|
-
},
|
|
865
|
-
this
|
|
866
|
-
);
|
|
822
|
+
this.__manager.addListener("complete", () => {
|
|
823
|
+
this.resume(function () {
|
|
824
|
+
// check the status after the complete
|
|
825
|
+
this.assertFalse(this.__manager.isValid());
|
|
826
|
+
this.assertFalse(this.__username.getValid());
|
|
827
|
+
this.assertTrue(this.__password1.getValid());
|
|
828
|
+
this.assertTrue(this.__password2.getValid());
|
|
829
|
+
}, this);
|
|
830
|
+
});
|
|
867
831
|
|
|
868
832
|
this.__password1.setValue("a");
|
|
869
833
|
this.__password2.setValue("b");
|
|
@@ -882,19 +846,15 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
882
846
|
this.__manager.add(this.__password1, this.__notEmptyValidator);
|
|
883
847
|
this.__manager.add(this.__password2, this.__notEmptyValidator);
|
|
884
848
|
|
|
885
|
-
this.__manager.addListener(
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
this.
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
}, this);
|
|
895
|
-
},
|
|
896
|
-
this
|
|
897
|
-
);
|
|
849
|
+
this.__manager.addListener("complete", () => {
|
|
850
|
+
this.resume(function () {
|
|
851
|
+
// check the status after the complete
|
|
852
|
+
this.assertFalse(this.__manager.isValid());
|
|
853
|
+
this.assertTrue(this.__username.getValid());
|
|
854
|
+
this.assertFalse(this.__password1.getValid());
|
|
855
|
+
this.assertTrue(this.__password2.getValid());
|
|
856
|
+
}, this);
|
|
857
|
+
});
|
|
898
858
|
|
|
899
859
|
this.__username.setValue("a");
|
|
900
860
|
this.__password2.setValue("b");
|
|
@@ -913,19 +873,15 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
913
873
|
this.__manager.add(this.__password1, this.__notEmptyValidator);
|
|
914
874
|
this.__manager.add(this.__password2, this.__notEmptyValidator);
|
|
915
875
|
|
|
916
|
-
this.__manager.addListener(
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
this.
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
}, this);
|
|
926
|
-
},
|
|
927
|
-
this
|
|
928
|
-
);
|
|
876
|
+
this.__manager.addListener("complete", () => {
|
|
877
|
+
this.resume(function () {
|
|
878
|
+
// check the status after the complete
|
|
879
|
+
this.assertTrue(this.__manager.isValid());
|
|
880
|
+
this.assertTrue(this.__username.getValid());
|
|
881
|
+
this.assertTrue(this.__password1.getValid());
|
|
882
|
+
this.assertTrue(this.__password2.getValid());
|
|
883
|
+
}, this);
|
|
884
|
+
});
|
|
929
885
|
|
|
930
886
|
this.__username.setValue("a");
|
|
931
887
|
this.__password1.setValue("b");
|
|
@@ -945,18 +901,14 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
945
901
|
this.__manager.add(this.__username, asyncValidator1);
|
|
946
902
|
this.__manager.add(this.__password1);
|
|
947
903
|
|
|
948
|
-
this.__manager.addListener(
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
this.
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
}, this);
|
|
957
|
-
},
|
|
958
|
-
this
|
|
959
|
-
);
|
|
904
|
+
this.__manager.addListener("complete", () => {
|
|
905
|
+
this.resume(function () {
|
|
906
|
+
// check the status after the complete
|
|
907
|
+
this.assertFalse(this.__manager.isValid());
|
|
908
|
+
this.assertTrue(this.__username.getValid());
|
|
909
|
+
this.assertFalse(this.__password1.getValid());
|
|
910
|
+
}, this);
|
|
911
|
+
});
|
|
960
912
|
|
|
961
913
|
this.__username.setValue("a");
|
|
962
914
|
|
|
@@ -980,19 +932,15 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
980
932
|
this.__manager.add(this.__password1, this.__notEmptyValidator);
|
|
981
933
|
this.__manager.add(this.__password2, asyncValidator3);
|
|
982
934
|
|
|
983
|
-
this.__manager.addListener(
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
this.
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
}, this);
|
|
993
|
-
},
|
|
994
|
-
this
|
|
995
|
-
);
|
|
935
|
+
this.__manager.addListener("complete", () => {
|
|
936
|
+
this.resume(function () {
|
|
937
|
+
// check the status after the complete
|
|
938
|
+
this.assertTrue(this.__manager.isValid());
|
|
939
|
+
this.assertTrue(this.__username.getValid());
|
|
940
|
+
this.assertTrue(this.__password1.getValid());
|
|
941
|
+
this.assertTrue(this.__password2.getValid());
|
|
942
|
+
}, this);
|
|
943
|
+
});
|
|
996
944
|
|
|
997
945
|
this.__manager.setValidator(
|
|
998
946
|
new qx.ui.form.validation.AsyncValidator(function (
|
|
@@ -1029,19 +977,15 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
1029
977
|
this.__manager.add(this.__password1, this.__notEmptyValidator);
|
|
1030
978
|
this.__manager.add(this.__password2, asyncValidator3);
|
|
1031
979
|
|
|
1032
|
-
this.__manager.addListener(
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
this.
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
}, this);
|
|
1042
|
-
},
|
|
1043
|
-
this
|
|
1044
|
-
);
|
|
980
|
+
this.__manager.addListener("complete", () => {
|
|
981
|
+
this.resume(function () {
|
|
982
|
+
// check the status after the complete
|
|
983
|
+
this.assertFalse(this.__manager.isValid());
|
|
984
|
+
this.assertTrue(this.__username.getValid());
|
|
985
|
+
this.assertFalse(this.__password1.getValid());
|
|
986
|
+
this.assertTrue(this.__password2.getValid());
|
|
987
|
+
}, this);
|
|
988
|
+
});
|
|
1045
989
|
|
|
1046
990
|
this.__manager.setValidator(
|
|
1047
991
|
new qx.ui.form.validation.AsyncValidator(function (
|
|
@@ -1077,19 +1021,15 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
1077
1021
|
this.__manager.add(this.__password1, this.__notEmptyValidator);
|
|
1078
1022
|
this.__manager.add(this.__password2, asyncValidator3);
|
|
1079
1023
|
|
|
1080
|
-
this.__manager.addListener(
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
this.
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
}, this);
|
|
1090
|
-
},
|
|
1091
|
-
this
|
|
1092
|
-
);
|
|
1024
|
+
this.__manager.addListener("complete", () => {
|
|
1025
|
+
this.resume(function () {
|
|
1026
|
+
// check the status after the complete
|
|
1027
|
+
this.assertFalse(this.__manager.isValid());
|
|
1028
|
+
this.assertFalse(this.__username.getValid());
|
|
1029
|
+
this.assertTrue(this.__password1.getValid());
|
|
1030
|
+
this.assertTrue(this.__password2.getValid());
|
|
1031
|
+
}, this);
|
|
1032
|
+
});
|
|
1093
1033
|
|
|
1094
1034
|
this.__manager.setValidator(
|
|
1095
1035
|
new qx.ui.form.validation.AsyncValidator(function (
|
|
@@ -1125,19 +1065,15 @@ qx.Class.define("qx.test.ui.form.FormValidator", {
|
|
|
1125
1065
|
this.__manager.add(this.__password1, this.__notEmptyValidator);
|
|
1126
1066
|
this.__manager.add(this.__password2, asyncValidator3);
|
|
1127
1067
|
|
|
1128
|
-
this.__manager.addListener(
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
this.
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
}, this);
|
|
1138
|
-
},
|
|
1139
|
-
this
|
|
1140
|
-
);
|
|
1068
|
+
this.__manager.addListener("complete", () => {
|
|
1069
|
+
this.resume(function () {
|
|
1070
|
+
// check the status after the complete
|
|
1071
|
+
this.assertFalse(this.__manager.isValid());
|
|
1072
|
+
this.assertTrue(this.__username.getValid());
|
|
1073
|
+
this.assertTrue(this.__password1.getValid());
|
|
1074
|
+
this.assertTrue(this.__password2.getValid());
|
|
1075
|
+
}, this);
|
|
1076
|
+
});
|
|
1141
1077
|
|
|
1142
1078
|
this.__manager.setValidator(
|
|
1143
1079
|
new qx.ui.form.validation.AsyncValidator(function (
|
|
@@ -111,15 +111,11 @@ qx.Class.define("qx.test.ui.form.Label", {
|
|
|
111
111
|
|
|
112
112
|
this.__label.setBuddy(this.__formWidget);
|
|
113
113
|
|
|
114
|
-
this.__formWidget.addListener(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}, this);
|
|
120
|
-
},
|
|
121
|
-
this
|
|
122
|
-
);
|
|
114
|
+
this.__formWidget.addListener("focus", () => {
|
|
115
|
+
this.resume(function () {
|
|
116
|
+
// do nothing. Just check for the event
|
|
117
|
+
}, this);
|
|
118
|
+
});
|
|
123
119
|
|
|
124
120
|
this.tapOn(this.__label);
|
|
125
121
|
|
|
@@ -134,13 +130,9 @@ qx.Class.define("qx.test.ui.form.Label", {
|
|
|
134
130
|
this.__label.setBuddy(null);
|
|
135
131
|
|
|
136
132
|
var focused = false;
|
|
137
|
-
this.__formWidget.addListener(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
focused = true;
|
|
141
|
-
},
|
|
142
|
-
this
|
|
143
|
-
);
|
|
133
|
+
this.__formWidget.addListener("focus", () => {
|
|
134
|
+
focused = true;
|
|
135
|
+
});
|
|
144
136
|
|
|
145
137
|
var self = this;
|
|
146
138
|
window.setTimeout(function () {
|
|
@@ -35,19 +35,15 @@ qx.Class.define("qx.test.ui.root.Inline", {
|
|
|
35
35
|
|
|
36
36
|
testAppearEvent() {
|
|
37
37
|
var inlineRoot = new qx.ui.root.Inline(this.__inlineIsleElement);
|
|
38
|
-
inlineRoot.addListener(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}, this);
|
|
48
|
-
},
|
|
49
|
-
this
|
|
50
|
-
);
|
|
38
|
+
inlineRoot.addListener("appear", e => {
|
|
39
|
+
this.resume(function () {
|
|
40
|
+
this.assertTrue(
|
|
41
|
+
qx.dom.Element.isInDom(
|
|
42
|
+
inlineRoot.getContentElement().getDomElement()
|
|
43
|
+
)
|
|
44
|
+
);
|
|
45
|
+
}, this);
|
|
46
|
+
});
|
|
51
47
|
|
|
52
48
|
this.wait();
|
|
53
49
|
}
|
|
@@ -189,13 +189,9 @@ qx.Class.define("qx.test.ui.table.Table", {
|
|
|
189
189
|
var table = new qx.ui.table.Table();
|
|
190
190
|
|
|
191
191
|
var executed = false;
|
|
192
|
-
var id = table.addListener(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
executed = true;
|
|
196
|
-
},
|
|
197
|
-
this
|
|
198
|
-
);
|
|
192
|
+
var id = table.addListener("changeRowHeight", () => {
|
|
193
|
+
executed = true;
|
|
194
|
+
});
|
|
199
195
|
|
|
200
196
|
this.assertNotNull(id);
|
|
201
197
|
|
|
@@ -214,13 +210,9 @@ qx.Class.define("qx.test.ui.table.Table", {
|
|
|
214
210
|
table.setMetaColumnCounts([1, -1]);
|
|
215
211
|
|
|
216
212
|
var executed = false;
|
|
217
|
-
var id = table.addListener(
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
executed = true;
|
|
221
|
-
},
|
|
222
|
-
this
|
|
223
|
-
);
|
|
213
|
+
var id = table.addListener("cellClick", () => {
|
|
214
|
+
executed = true;
|
|
215
|
+
});
|
|
224
216
|
|
|
225
217
|
this.assertNotNull(id);
|
|
226
218
|
|
|
@@ -194,15 +194,11 @@ qx.Class.define("qx.test.ui.toolbar.OverflowHandling", {
|
|
|
194
194
|
|
|
195
195
|
this.assertEquals("excluded", this.__indicator.getVisibility());
|
|
196
196
|
|
|
197
|
-
this.__indicator.addListener(
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}, this);
|
|
203
|
-
},
|
|
204
|
-
this
|
|
205
|
-
);
|
|
197
|
+
this.__indicator.addListener("changeVisibility", () => {
|
|
198
|
+
this.resume(function () {
|
|
199
|
+
this.assertEquals("visible", this.__indicator.getVisibility());
|
|
200
|
+
}, this);
|
|
201
|
+
});
|
|
206
202
|
|
|
207
203
|
this.__container.setWidth(60);
|
|
208
204
|
this.wait();
|
|
@@ -222,15 +218,11 @@ qx.Class.define("qx.test.ui.toolbar.OverflowHandling", {
|
|
|
222
218
|
this.__container.setWidth(60);
|
|
223
219
|
this.flush();
|
|
224
220
|
|
|
225
|
-
this.__indicator.addListener(
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}, this);
|
|
231
|
-
},
|
|
232
|
-
this
|
|
233
|
-
);
|
|
221
|
+
this.__indicator.addListener("changeVisibility", () => {
|
|
222
|
+
this.resume(function () {
|
|
223
|
+
this.assertEquals("excluded", this.__indicator.getVisibility());
|
|
224
|
+
}, this);
|
|
225
|
+
});
|
|
234
226
|
|
|
235
227
|
this.__container.setWidth(160);
|
|
236
228
|
this.wait();
|
|
@@ -247,19 +239,15 @@ qx.Class.define("qx.test.ui.toolbar.OverflowHandling", {
|
|
|
247
239
|
|
|
248
240
|
this.assertEquals("excluded", this.__indicator.getVisibility());
|
|
249
241
|
|
|
250
|
-
this.__b2.addListener(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
this.resume(function () {
|
|
254
|
-
this.assertEquals("visible", this.__indicator.getVisibility());
|
|
242
|
+
this.__b2.addListener("changeVisibility", () => {
|
|
243
|
+
this.resume(function () {
|
|
244
|
+
this.assertEquals("visible", this.__indicator.getVisibility());
|
|
255
245
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
this
|
|
262
|
-
);
|
|
246
|
+
// check if both buttons have been removed
|
|
247
|
+
this.assertEquals("excluded", this.__b3.getVisibility(), "1");
|
|
248
|
+
this.assertEquals("excluded", this.__b2.getVisibility(), "2");
|
|
249
|
+
}, this);
|
|
250
|
+
});
|
|
263
251
|
|
|
264
252
|
this.__container.setWidth(60);
|
|
265
253
|
this.wait();
|
|
@@ -100,13 +100,9 @@ qx.Class.define("qx.test.ui.virtual.Pane", {
|
|
|
100
100
|
var called = 0;
|
|
101
101
|
|
|
102
102
|
var pane = new qx.ui.virtual.core.Pane(100, 20, 10, 50);
|
|
103
|
-
pane.addListener(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
called++;
|
|
107
|
-
},
|
|
108
|
-
this
|
|
109
|
-
);
|
|
103
|
+
pane.addListener("update", () => {
|
|
104
|
+
called++;
|
|
105
|
+
});
|
|
110
106
|
|
|
111
107
|
pane.set({
|
|
112
108
|
width: 300,
|