At bdash's suggestion, display a message if someone attempts to run the ...
authordsmith@webkit.org <dsmith@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Dec 2007 07:26:01 +0000 (07:26 +0000)
committerdsmith@webkit.org <dsmith@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Dec 2007 07:26:01 +0000 (07:26 +0000)
        * blog-files/gebcnspeedtest.html:

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

WebKitSite/ChangeLog
WebKitSite/blog-files/gebcnspeedtest.html

index b30775351cffeb3f574081f0fb35908b0fc26fa9..acfcd70584c660843f78de28596555b5ea1ff1ae 100644 (file)
@@ -1,3 +1,9 @@
+2007-12-21  David Smith  <catfish.man@gmail.com>
+
+        At bdash's suggestion, display a message if someone attempts to run the 'native' version of the getElementsByClassName benchmark in a browser that doesn't support that.
+
+        * blog-files/gebcnspeedtest.html:
+
 2007-12-21  David Smith  <catfish.man@gmail.com>
 
         Add the benchmark from the previous commit as well.
index afd386bfd1b4bbb8fcadd83507024603c2d615d7..c1be88b71dd35b2591d93be2fd30ad04446c4b43 100644 (file)
             switch(type)
             {
             case "native":
+                //test for a working native getElementsByClassName
+                if(!document.getElementsByClassName)
+                {
+                    alert("Your browser does not have a native implementation of getElementsByClassName");
+                    return;
+                }
                 start = new Date();
 
                 for(; iterations > 0; --iterations)