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

Side by Side Diff: tools/page_cycler/common/start.js

Issue 7935012: Clean variable __navigated_to_report when starting tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « tools/page_cycler/common/head.js ('k') | tools/page_cycler/database/start.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // 2 // Use of this source code is governed by a BSD-style license that can be
3 // Redistribution and use in source and binary forms, with or without 3 // found in the LICENSE file.
4 // modification, are permitted provided that the following conditions are
5 // met:
6 //
7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer
11 // in the documentation and/or other materials provided with the
12 // distribution.
13 // * Neither the name of Google Inc. nor the names of its
14 // contributors may be used to endorse or promote products derived from
15 // this software without specific prior written permission.
16 //
17 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 4
29 // This script runs the page cycler. It assumes that __pages is an array 5 // This script runs the page cycler. It assumes that __pages is an array
30 // containing the directories for various pages to exercise. 6 // containing the directories for various pages to exercise.
31 7
32 document.title = "page cycler"; 8 document.title = "page cycler";
33 9
34 var initialPage = __pages[0]; 10 var initialPage = __pages[0];
35 11
12 document.cookie = "__navigated_to_report=0; path=/";
36 document.cookie = "__pc_done=0; path=/"; 13 document.cookie = "__pc_done=0; path=/";
37 document.cookie = "__pc_pages=" + __pages + "; path=/"; 14 document.cookie = "__pc_pages=" + __pages + "; path=/";
38 document.cookie = "__pc_timings=; path=/"; 15 document.cookie = "__pc_timings=; path=/";
39 16
40 var options = location.search.substring(1).split('&'); 17 var options = location.search.substring(1).split('&');
41 18
42 function getopt(name) { 19 function getopt(name) {
43 var r = new RegExp("^" + name + "="); 20 var r = new RegExp("^" + name + "=");
44 for (i = 0; i < options.length; ++i) { 21 for (i = 0; i < options.length; ++i) {
45 if (options[i].match(r)) { 22 if (options[i].match(r)) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 render_form(); 58 render_form();
82 59
83 // should we start automatically? 60 // should we start automatically?
84 if (location.search.match("auto=1")) { 61 if (location.search.match("auto=1")) {
85 start(); 62 start();
86 } else { 63 } else {
87 document.write("<h3>Note: You must have started chrome with <tt>--enable-file- cookies --js-flags=\"--expose_gc\"</tt> for this test to work manually.</h3>"); 64 document.write("<h3>Note: You must have started chrome with <tt>--enable-file- cookies --js-flags=\"--expose_gc\"</tt> for this test to work manually.</h3>");
88 if (!window.gc) 65 if (!window.gc)
89 document.write("<h3 style='color:red'>WARNING: window.gc is not defined. Te st results may be unreliable!</h3>"); 66 document.write("<h3 style='color:red'>WARNING: window.gc is not defined. Te st results may be unreliable!</h3>");
90 } 67 }
OLDNEW
« no previous file with comments | « tools/page_cycler/common/head.js ('k') | tools/page_cycler/database/start.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698