Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: chrome/content/tests/performance/filter_fromText.html

Issue 29350387: Issue 4353 - Remove deprecated __proto__ syntax (Closed)
Patch Set: Created Sept. 1, 2016, 11:44 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/content/tests/filterClasses.js ('k') | chrome/content/tests/subscriptionClasses.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Filter initialization performance measurements</title> 4 <title>Filter initialization performance measurements</title>
5 <script type="application/x-javascript;version=1.7" src="common.js"></script> 5 <script type="application/x-javascript;version=1.7" src="common.js"></script>
6 <script type="application/x-javascript;version=1.7" src="../common.js"></scrip t> 6 <script type="application/x-javascript;version=1.7" src="../common.js"></scrip t>
7 </head> 7 </head>
8 <body> 8 <body>
9 <p> 9 <p>
10 Filters to be used:<br> 10 Filters to be used:<br>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 function runTest() 46 function runTest()
47 { 47 {
48 for (let text of filters) 48 for (let text of filters)
49 Filter.fromText(text); 49 Filter.fromText(text);
50 } 50 }
51 51
52 function cleanup() 52 function cleanup()
53 { 53 {
54 // Clear cache 54 // Clear cache
55 Filter.knownFilters = {__proto__: null}; 55 Filter.knownFilters = Object.create(null);
56 } 56 }
57 57
58 function finalize() 58 function finalize()
59 { 59 {
60 document.getElementById("progress").style.display = "none"; 60 document.getElementById("progress").style.display = "none";
61 document.getElementById("filters").disabled = false; 61 document.getElementById("filters").disabled = false;
62 document.getElementById("startButton").disabled = false; 62 document.getElementById("startButton").disabled = false;
63 filters = null; 63 filters = null;
64 } 64 }
65 </script> 65 </script>
66 </body> 66 </body>
67 </html> 67 </html>
OLDNEW
« no previous file with comments | « chrome/content/tests/filterClasses.js ('k') | chrome/content/tests/subscriptionClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld