mozilla

Compare Revisions

Avoiding intermittent test failures

Change Revisions

Revision 89399:

Revision 89399 by Ehsan on

Revision 89400:

Revision 89400 by Mak77 on

Title:
Avoiding intermittent oranges
Avoiding intermittent oranges
Slug:
QA/Avoiding_intermittent_oranges
QA/Avoiding_intermittent_oranges
Tags:
QA, QA:Tools, "Automated testing"
QA, QA:Tools, "Automated testing"
Content:

Revision 89399
Revision 89400
tt245    <h2>
246      Tests that depend on time differences
247    </h2>
248    <p>
249      When doing time differences the operating system timers res
 >olution should be taken into account. For example consecutive cal
 >ls to Date() don't guarantee to get different values. Also when c
 >rossing XPCOM different time implementations can give surprising 
 >results. For example when comparing a timestamp got through PR_No
 >w() with one got though a javascript date results could be surpri
 >sing (like the last call being in the past of the first call). Th
 >ese differences are more pronouced on Windows were the skew can b
 >e up to 16ms.
250    </p>

Back to History