mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Backed out changeset a4cac20d25c9 (bug 1034138)
This commit is contained in:
parent
f84e1a5994
commit
ba0e2c0154
@ -31,25 +31,17 @@ function run_test() {
|
||||
}
|
||||
}
|
||||
|
||||
// Run three events in the event loop:
|
||||
// the first event causes a transient hang;
|
||||
// the second event causes a permanent hang;
|
||||
// the third event checks results from previous events.
|
||||
// Run two events in the event loop:
|
||||
// the first event causes a hang;
|
||||
// the second event checks results from the first event.
|
||||
|
||||
do_execute_soon(() => {
|
||||
// Cause a hang lasting 1 second (transient hang).
|
||||
// Cause a hang lasting 1 second.
|
||||
let startTime = Date.now();
|
||||
while ((Date.now() - startTime) < 1000) {
|
||||
}
|
||||
});
|
||||
|
||||
do_execute_soon(() => {
|
||||
// Cause a hang lasting 10 seconds (permanent hang).
|
||||
let startTime = Date.now();
|
||||
while ((Date.now() - startTime) < 10000) {
|
||||
}
|
||||
});
|
||||
|
||||
do_execute_soon(() => {
|
||||
do_test_pending();
|
||||
|
||||
@ -86,14 +78,6 @@ function run_test() {
|
||||
notEqual(endHangs.hangs[0].stack.length, 0);
|
||||
equal(typeof endHangs.hangs[0].stack[0], "string");
|
||||
|
||||
// Make sure one of the hangs is a permanent
|
||||
// hang containing a native stack.
|
||||
ok(endHangs.hangs.some((hang) => (
|
||||
Array.isArray(hang.nativeStack) &&
|
||||
hang.nativeStack.length !== 0 &&
|
||||
typeof hang.nativeStack[0] === "string"
|
||||
)));
|
||||
|
||||
check_histogram(endHangs.hangs[0].histogram);
|
||||
|
||||
do_test_finished();
|
||||
|
Loading…
Reference in New Issue
Block a user