mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Call done.fail
correctly in the scripting_spec.js
unit-tests
The `done.fail` method should *always* be called with a reason, to ensure that any errors are propagated as intended to the test results.
This commit is contained in:
parent
d1848f5022
commit
9adb225a7d
1 changed files with 18 additions and 18 deletions
|
@ -749,8 +749,8 @@ describe("Scripting", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
done();
|
done();
|
||||||
} catch (_) {
|
} catch (ex) {
|
||||||
done.fail();
|
done.fail(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -793,8 +793,8 @@ describe("Scripting", function () {
|
||||||
valueAsString: "123456.789",
|
valueAsString: "123456.789",
|
||||||
});
|
});
|
||||||
done();
|
done();
|
||||||
} catch (_) {
|
} catch (ex) {
|
||||||
done.fail();
|
done.fail(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -834,8 +834,8 @@ describe("Scripting", function () {
|
||||||
value: "Invalid number in [ MyField ]",
|
value: "Invalid number in [ MyField ]",
|
||||||
});
|
});
|
||||||
done();
|
done();
|
||||||
} catch (_) {
|
} catch (ex) {
|
||||||
done.fail();
|
done.fail(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -893,8 +893,8 @@ describe("Scripting", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
done();
|
done();
|
||||||
} catch (_) {
|
} catch (ex) {
|
||||||
done.fail();
|
done.fail(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -948,8 +948,8 @@ describe("Scripting", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
done();
|
done();
|
||||||
} catch (_) {
|
} catch (ex) {
|
||||||
done.fail();
|
done.fail(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -990,8 +990,8 @@ describe("Scripting", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
done();
|
done();
|
||||||
} catch (_) {
|
} catch (ex) {
|
||||||
done.fail();
|
done.fail(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1029,8 +1029,8 @@ describe("Scripting", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
done();
|
done();
|
||||||
} catch (_) {
|
} catch (ex) {
|
||||||
done.fail();
|
done.fail(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1124,8 +1124,8 @@ describe("Scripting", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
done();
|
done();
|
||||||
} catch (_) {
|
} catch (ex) {
|
||||||
done.fail();
|
done.fail(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1202,8 +1202,8 @@ describe("Scripting", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
done();
|
done();
|
||||||
} catch (_) {
|
} catch (ex) {
|
||||||
done.fail();
|
done.fail(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue