From ygrego@users.nuiton.org Tue May 19 14:06:10 2015
From: ygrego@users.nuiton.org
To: sandbox-commits@list.nuiton.org
Subject: [Sandbox-commits] r1404 - oipf/js/test
Date: Tue, 19 May 2015 14:06:10 +0000
Message-ID: <20150519140610.951A55C6ACA@goh.codelutin.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0430345571870558975=="

--===============0430345571870558975==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Author: ygrego
Date: 2015-05-19 14:06:09 +0000 (Tue, 19 May 2015)
New Revision: 1404

Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1404

Log:
Addition of method "testSetParentalControlPINWithInvalidOldPINAndValidNewPIN".

Modified:
   oipf/js/test/ParentalControlManagerTest.js

Modified: oipf/js/test/ParentalControlManagerTest.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- oipf/js/test/ParentalControlManagerTest.js	2015-05-19 14:01:09 UTC (rev 1=
403)
+++ oipf/js/test/ParentalControlManagerTest.js	2015-05-19 14:06:09 UTC (rev 1=
404)
@@ -167,5 +167,25 @@
         } else {
             reject();
         }
+    },
+   =20
+    testSetParentalControlPINWithInvalidOldPINAndValidNewPIN: function(resol=
ve, reject) {
+        this.newPIN =3D "1212";
+        var resultSetPIN =3D this.parentalControlManagerObject
+                .setParentalControlPIN("PIN", this.newPIN);
+       =20
+        console.log(resultSetPIN);
+       =20
+        var resultVerifyPIN =3D this.parentalControlManagerObject
+                .verifyParentalControlPIN(this.newPIN);
+
+        console.log(resultVerifyPIN);
+       =20
+        if (this.assertEquals(resultSetPIN, this.PIN_INCORRECT) &&=20
+                this.assertEquals(resultVerifyPIN, this.PIN_INCORRECT)) {
+            resolve();
+        } else {
+            reject();
+        }
     }
 });
\ No newline at end of file


--===============0430345571870558975==--


