Test: dojox.form.PasswordValidator

Automated test

No old password




Old password (hard-coded to "oldpw2") - not passed to getValues





Old password (hard-coded to "oldpw3") - passed to getValues





In Table, Old password (hard-coded to "oldpw4") - not passed to getValues


In Table, Old password (hard-coded to "oldpw5") - passed to getValues


No old password, not required




Get Values Toggle Disabled Submit Form 1 Submit Form 2 Submit Form 3
DEPRECATED: dojox.form._NewPWBox::attr() is deprecated. Use get() or set() instead, called from function(_5){ return this.inherited("isValid",arguments)&&(this.get("value")==this.containerWidget._inputWidgets[1].attr("value")); } -- will be removed in version: 2.0
6 tests to run in 1 groups
------------------------------------------------------------
GROUP "tests" has 6 tests to run
DEPRECATED: dojox.form.PasswordValidator::attr() is deprecated. Use get() or set() instead, called from function test_setDisabled(t){ valid1.attr("disabled", true); t.t(dojo.every(dojo.query("[widgetId]", valid1.domNode).map(function(i){ return dijit.byNode(i); }), function(i){return i.disabled;})); valid1.attr("disabled", false); t.t(dojo.every(dojo.query("[widgetId]", valid1.domNode).map(function(i){ return dijit.byNode(i); }), function(i){return !i.disabled;})); } -- will be removed in version: 2.0
DEPRECATED: dojox.form._NewPWBox::attr() is deprecated. Use get() or set() instead, called from function(i){ if(i&&i.attr){ i.attr("disabled",_d); } } -- will be removed in version: 2.0
PASSED test: test_setDisabled 3 ms
DEPRECATED: dojox.form._NewPWBox::attr() is deprecated. Use get() or set() instead, called from function test_isValid(t){ t.f(form1.isValid()); dijit.byId("nv1").attr("value", "test"); dijit.byId("vv1").attr("value", "Test"); t.f(form1.isValid()); dijit.byId("vv1").attr("value", "test"); t.t(form1.isValid()); t.t(form6.isValid()); t.is({password: ""}, form6.attr("value")); dijit.byId("nv6").attr("value", "test"); t.f(form6.isValid()); t.is({password: ""}, form6.attr("value")); dijit.byId("vv6").attr("value", "test"); t.t(form6.isValid()); t.is({password: "test"}, form6.attr("value")); } -- will be removed in version: 2.0
PASSED test: test_isValid 3 ms
DEPRECATED: dojox.form._NewPWBox::attr() is deprecated. Use get() or set() instead, called from function test_getValue(t){ dijit.byId("nv1").attr("value", "test"); dijit.byId("vv1").attr("value", "Test"); t.is({password: ""}, form1.attr("value")); dijit.byId("vv1").attr("value", "test123"); dijit.byId("nv1").attr("value", "test123"); t.is({password: "test123"}, form1.attr("value")); } -- will be removed in version: 2.0
PASSED test: test_getValue 1 ms
DEPRECATED: dojox.form._NewPWBox::attr() is deprecated. Use get() or set() instead, called from function test_oldPW(t){ dijit.byId("nv2").attr("value", "test"); dijit.byId("vv2").attr("value", "test"); t.f(form2.isValid()); dijit.byId("ov2").attr("value", "oldpw4"); t.f(form2.isValid()); dijit.byId("ov2").attr("value", "oldpw2"); t.t(form2.isValid()); } -- will be removed in version: 2.0
DEPRECATED: dojox.form._NewPWBox::attr() is deprecated. Use get() or set() instead, called from function(_1,_2){ if(_1===""){ _1=dojox.form._OldPWBox.superclass.attr.call(this,"value"); } if(_2!==null){ this._isPWValid=this.containerWidget.pwCheck(_1); } this.inherited(arguments); this.containerWidget._childValueAttr(this.containerWidget._inputWidgets[1].attr("value")); } -- will be removed in version: 2.0
PASSED test: test_oldPW 2 ms
DEPRECATED: dijit.form.Form::attr() is deprecated. Use get() or set() instead, called from function test_getOldValue(t){ t.is({password: "test"}, form2.attr("value")); dijit.byId("nv3").attr("value", "test"); dijit.byId("vv3").attr("value", "test"); dijit.byId("ov3").attr("value", "oldpw4"); t.is({password: "", oldPassword: ""}, form3.attr("value")); dijit.byId("ov3").attr("value", "oldpw3"); dijit.byId("vv3").attr("value", "Test"); t.is({password: "", oldPassword: ""}, form3.attr("value")); dijit.byId("vv3").attr("value", "test"); t.is({password: "test", oldPassword: "oldpw3"}, form3.attr("value")); } -- will be removed in version: 2.0
Checking oldpw4
Checking oldpw3
PASSED test: test_getOldValue 3 ms
DEPRECATED: dojox.form._NewPWBox::attr() is deprecated. Use get() or set() instead, called from function test_getValuesInTable(t){ dijit.byId("nv4").attr("value", "test"); dijit.byId("vv4").attr("value", "test"); dijit.byId("ov4").attr("value", "oldpw4"); t.is({password: "test"}, form4.attr("value")); dijit.byId("nv5").attr("value", "test"); dijit.byId("vv5").attr("value", "test"); dijit.byId("ov5").attr("value", "oldpw5"); t.is({password: "test", oldPassword: "oldpw5"}, form5.attr("value")); } -- will be removed in version: 2.0
PASSED test: test_getValuesInTable 1 ms
Total time for GROUP " tests " is 13ms
Total time for GROUP " tests " is 13ms
WOOHOO!!
------------------------------------------------------------
| TEST SUMMARY:
------------------------------------------------------------
6 tests in 1 groups
0 errors
0 failures