Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: res/js/common.js

Issue 1144163010: Getting started on the fuzzer web front end. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Frontend can now retrieve/show the hashes of existing passed/failed fuzzes. Good place to land. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /** 1 /**
2 * common.js is a set of common functions used across all of skiaperf. 2 * common.js is a set of common functions used across all of skiaperf.
3 * 3 *
4 * Everything is scoped to 'sk' except $$ and $$$ which are global since they 4 * Everything is scoped to 'sk' except $$ and $$$ which are global since they
5 * are used so often. 5 * are used so often.
6 * 6 *
7 */ 7 */
8 8
9 /** 9 /**
10 * $$ returns a real JS array of DOM elements that match the CSS query selector. 10 * $$ returns a real JS array of DOM elements that match the CSS query selector.
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 }); 576 });
577 } 577 }
578 578
579 // Capitalize each word in the string. 579 // Capitalize each word in the string.
580 String.prototype.toCapWords = function() { 580 String.prototype.toCapWords = function() {
581 return this.replace(/\b\w/g, function(firstLetter) { 581 return this.replace(/\b\w/g, function(firstLetter) {
582 return firstLetter.toUpperCase(); 582 return firstLetter.toUpperCase();
583 }); 583 });
584 } 584 }
585 585
586 // return true iff the string starts with the given prefix
jcgregorio 2015/06/01 14:39:47 What is this? It's not a function?
humper 2015/06/01 16:14:43 Not sure what you mean -- I'm just checking here t
jcgregorio 2015/06/01 16:34:15 OK, yeah, so if you are just polyfilling String.st
587 if (typeof String.prototype.startsWith != 'function') {
588 String.prototype.startsWith = function (str){
589 return this.slice(0, str.length) == str;
590 };
591 }
592
586 return sk; 593 return sk;
587 }(); 594 }();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698