diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-02 17:06:20 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-04 20:19:21 +0000 |
commit | df0a749452d933e4f434e2a33112667f1880db34 (patch) | |
tree | a7732743d73c5a7e3df6605b38c066cf82940c39 /testing/resources/bug_765384.in | |
parent | 86b5267ac4c2f169f105a1ea30cdf2eb0ea0b5dc (diff) | |
download | pdfium-df0a749452d933e4f434e2a33112667f1880db34.tar.xz |
Remove allocations from JS test
This CL removes the millions of allocations from the test case for bug
765384. This takes the test execution from ~20s to ~400ms when run in
Debug.
Bug: chromium:765384
Change-Id: Ib1e9d3c6fb9853e541189e1a16f765d05202cdcc
Reviewed-on: https://pdfium-review.googlesource.com/22011
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'testing/resources/bug_765384.in')
-rw-r--r-- | testing/resources/bug_765384.in | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/testing/resources/bug_765384.in b/testing/resources/bug_765384.in index 1de85d31ba..e7e46c797e 100644 --- a/testing/resources/bug_765384.in +++ b/testing/resources/bug_765384.in @@ -70,16 +70,9 @@ endobj {{object 21 0}} << >> stream -function gc() { - tmp = []; - for (var i = 0; i < 0x200000; i++) - tmp.push(new Uint8Array(10)); - tmp = null; -} this.getField("MyField2").setFocus(); this.getField("MyField").borderStyle="dashed"; this.getField("MyField").setFocus(); -gc(); endstream endobj {{object 43 0}} << |