This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree 1 file changed +17
-4
lines changed
1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -1025,20 +1025,33 @@ void main() {
1025
1025
_.compile ('<input type="color" ng-model="model">' );
1026
1026
_.rootScope.apply ();
1027
1027
1028
- expect ((_.rootElement as dom.InputElement ).value).toEqual ('#000000' );
1028
+ expect ((_.rootElement as dom.InputElement ).value, anyOf (
1029
+ // Chrome, Firefox
1030
+ equals ('#000000' ),
1031
+ // IE11, Safari 7
1032
+ equals ('' )));
1029
1033
1030
1034
_.rootScope.apply ('model = "#123456"' );
1031
1035
expect ((_.rootElement as dom.InputElement ).value).toEqual ('#123456' );
1032
1036
});
1033
1037
1034
- it ('should render as #000000 on default and when a null value is present' , () {
1038
+ it (r 'should render as " #000000"/"" on default and when a null value is present' , () {
1035
1039
_.compile ('<input type="color" ng-model="model">' );
1036
1040
_.rootScope.apply ();
1037
1041
1038
- expect ((_.rootElement as dom.InputElement ).value).toEqual ('#000000' );
1042
+ expect ((_.rootElement as dom.InputElement ).value, anyOf (
1043
+ // Chrome, Firefox
1044
+ equals ('#000000' ),
1045
+ // IE11, Safari 7
1046
+ equals ('' )));
1047
+
1039
1048
1040
1049
_.rootScope.apply ('model = null' );
1041
- expect ((_.rootElement as dom.InputElement ).value).toEqual ('#000000' );
1050
+ expect ((_.rootElement as dom.InputElement ).value, anyOf (
1051
+ // Chrome, Firefox
1052
+ equals ('#000000' ),
1053
+ // IE11, Safari 7
1054
+ equals ('' )));
1042
1055
});
1043
1056
1044
1057
it ('should update model from the input value' , () {
You can’t perform that action at this time.
0 commit comments