2011-07-02 Maciej Stachowiak <mjs@apple.com>
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 Jul 2011 20:57:40 +0000 (20:57 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 Jul 2011 20:57:40 +0000 (20:57 +0000)
        SunSpider: string-validate-input.js uses an undeclared variable named 'name', which is a DOM API
        https://bugs.webkit.org/show_bug.cgi?id=60937

        Reviewed by Dan Bernstein.

        * tests/sunspider-1.0/string-validate-input.js:
        (doTest): Rename the variable to username

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@90318 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PerformanceTests/SunSpider/ChangeLog
PerformanceTests/SunSpider/tests/sunspider-1.0/string-validate-input.js

index 07cca77937bed5921bdf3def97ec6bf51acebdf1..fedbcd89273dcb48737f58d35aa9b2920ea90e22 100644 (file)
@@ -1,3 +1,13 @@
+2011-07-02  Maciej Stachowiak  <mjs@apple.com>
+
+        SunSpider: string-validate-input.js uses an undeclared variable named 'name', which is a DOM API
+        https://bugs.webkit.org/show_bug.cgi?id=60937
+
+        Reviewed by Dan Bernstein.
+
+        * tests/sunspider-1.0/string-validate-input.js:
+        (doTest): Rename the variable to username
+
 2011-07-02  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Darin Adler.
 2011-07-02  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Darin Adler.
index 3455b3208d2cf2f708b861d03e553d63a994e471..a027174be6a098d790da2e52b85ca4fe9a6a3dfc 100644 (file)
@@ -11,8 +11,8 @@ function doTest()
    // make up email address
    for (var k=0;k<4000;k++)
    {
    // make up email address
    for (var k=0;k<4000;k++)
    {
-      name = makeName(6);
-      (k%2)?email=name+"@mac.com":email=name+"(at)mac.com";
+      username = makeName(6);
+      (k%2)?email=username+"@mac.com":email=username+"(at)mac.com";
 
       // validate the email address
       var pattern = /^[a-zA-Z0-9\-\._]+@[a-zA-Z0-9\-_]+(\.?[a-zA-Z0-9\-_]*)\.[a-zA-Z]{2,3}$/;
 
       // validate the email address
       var pattern = /^[a-zA-Z0-9\-\._]+@[a-zA-Z0-9\-_]+(\.?[a-zA-Z0-9\-_]*)\.[a-zA-Z]{2,3}$/;