Updated the benchmarking utility to use the Yahoo homepage and a bunch of new selectors.
This commit is contained in:
parent
944484c3fe
commit
9c029f1687
|
@ -1,19 +1,42 @@
|
||||||
jQuery.benchmarker.tests = [
|
jQuery.benchmarker.tests = [
|
||||||
|
// Selectors from:
|
||||||
|
// http://ejohn.org/blog/selectors-that-people-actually-use/
|
||||||
|
/*
|
||||||
|
// For Amazon.com
|
||||||
|
"#navAmazonLogo", "#navSwmSkedPop",
|
||||||
|
".navbar", ".navGreeting",
|
||||||
|
"div", "table",
|
||||||
|
"img.navCrossshopTabCap", "span.navGreeting",
|
||||||
|
"#navbar table", "#navidWelcomeMsg span",
|
||||||
|
"div#navbar", "ul#navAmazonLogo",
|
||||||
|
"#navAmazonLogo .navAmazonLogoGatewayPanel", "#navidWelcomeMsg .navGreeting",
|
||||||
|
".navbar .navAmazonLogoGatewayPanel", ".navbar .navGreeting",
|
||||||
"*",
|
"*",
|
||||||
"body", "body div", "div",
|
"#navAmazonLogo li.navAmazonLogoGatewayPanel", "#navidWelcomeMsg span.navGreeting",
|
||||||
"div div div", "div div", ".dialog", "div.dialog", "div .dialog",
|
"a[name=top]", "form[name=site-search]",
|
||||||
"#speech5", "div#speech5", "div #speech5", "div > div", "div.scene div.dialog",
|
".navbar li", ".navbar span",
|
||||||
"div#scene1.scene div.dialog div.direction", "#scene1 #speech1", "body > div.dialog div div#speech5",
|
"[name=top]", "[name=site-search]",
|
||||||
"div:not(#speech5)", "div:not(.dialog)",
|
"ul li", "a img",
|
||||||
"div:nth-child(even)", "div:nth-child(odd)",
|
"#navbar #navidWelcomeMsg", "#navbar #navSwmDWPop",
|
||||||
"div:nth-child(1)", "div:nth-child(2n)",
|
"#navbar ul li", "#navbar a img"
|
||||||
"div:nth-child(2n+3)", "div:first-child",
|
*/
|
||||||
"div:last-child", "div:only-child",
|
// For Yahoo.com
|
||||||
"div:contains(CELIA)",
|
"#page", "#masthead", "#mastheadhd",
|
||||||
"div ~ div", "div + div",
|
".mastheadbd", ".first", ".on",
|
||||||
"div[class]", "div[class=dialog]", "div[class!=dialog]",
|
"div", "li", "a",
|
||||||
"div[class^=dialog]", "div[class$=dialog]", "div[class*=dialog]"
|
"div.mastheadbd", "li.first", "li.on",
|
||||||
]
|
"#page div", "#dtba span",
|
||||||
|
"div#page", "div#masthead",
|
||||||
|
"#page .mastheadbd", "#page .first",
|
||||||
|
".outer_search_container .search_container", ".searchbox_container .inputtext",
|
||||||
|
"*",
|
||||||
|
"#page div.mastheadbd", "#page li.first",
|
||||||
|
"input[name=p]", "a[name=marketplace]",
|
||||||
|
".outer_search_container div", ".searchbox_container span",
|
||||||
|
"[name=p]", "[name=marketplace]",
|
||||||
|
"ul li", "form input",
|
||||||
|
"#page #e2econtent", "#page #e2e"
|
||||||
|
];
|
||||||
|
|
||||||
jQuery.fn.benchmark = function() {
|
jQuery.fn.benchmark = function() {
|
||||||
this.each(function() {
|
this.each(function() {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue