comparison components/tp-cmdline.js @ 202:0b38ce037298

Bug 661918 - Tp should wait for MozAfterPaint after onload. r=tnikkel,vlad
author Joel Maher <jmaher@mozilla.com>
date Wed, 14 Sep 2011 16:41:38 -0400
parents 31249cbe4f19
children beca399c3a16
comparison
equal deleted inserted replaced
201:bffb8b1b0948 202:0b38ce037298
91 args.offline = cmdLine.handleFlag("tpoffline", false); 91 args.offline = cmdLine.handleFlag("tpoffline", false);
92 args.noisy = cmdLine.handleFlag("tpnoisy", false); 92 args.noisy = cmdLine.handleFlag("tpnoisy", false);
93 args.timeout = cmdLine.handleFlagWithParam("tptimeout", false); 93 args.timeout = cmdLine.handleFlagWithParam("tptimeout", false);
94 args.delay = cmdLine.handleFlagWithParam("tpdelay", false); 94 args.delay = cmdLine.handleFlagWithParam("tpdelay", false);
95 args.noForceCC = cmdLine.handleFlag("tpnoforcecc", false); 95 args.noForceCC = cmdLine.handleFlag("tpnoforcecc", false);
96 args.mozafterpaint = cmdLine.handleFlag("tpmozafterpaint", false);
96 } 97 }
97 catch (e) { 98 catch (e) {
98 return; 99 return;
99 } 100 }
100 101
121 " -tpheight height Height of window\n" + 122 " -tpheight height Height of window\n" +
122 " -tpoffline Force offline mode\n" + 123 " -tpoffline Force offline mode\n" +
123 " -tpnoisy Dump the name of the last loaded page to console\n" + 124 " -tpnoisy Dump the name of the last loaded page to console\n" +
124 " -tptimeout Max amount of time given for a page to load, quit if exceeded\n" + 125 " -tptimeout Max amount of time given for a page to load, quit if exceeded\n" +
125 " -tpdelay Amount of time to wait between each pageload\n" + 126 " -tpdelay Amount of time to wait between each pageload\n" +
126 " -tpnoforcecc Don't force cycle collection between each pageload\n" 127 " -tpnoforcecc Don't force cycle collection between each pageload\n" +
128 " -tpmozafterpaint Measure Time after recieving MozAfterPaint event instead of load event\n"
127 129
128 }; 130 };
129 131
130 132
131 var PageLoaderCmdLineFactory = 133 var PageLoaderCmdLineFactory =