summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/util_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/util_unittest.cpp')
-rw-r--r--fpdfsdk/javascript/util_unittest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/javascript/util_unittest.cpp b/fpdfsdk/javascript/util_unittest.cpp
index eaebc9c7f2..b096f35a18 100644
--- a/fpdfsdk/javascript/util_unittest.cpp
+++ b/fpdfsdk/javascript/util_unittest.cpp
@@ -78,12 +78,12 @@ TEST(CJS_Util, ParseDataType) {
// {L"%.14s", -1},
// {L"%.f", -1},
+ // See https://crbug.com/740166
// nPrecision too large (> 260) causes crashes in Windows.
- // TODO(tsepez): Reenable when fix is out.
- // {L"%.261d", -1},
- // {L"%.261x", -1},
- // {L"%.261f", -1},
- // {L"%.261s", -1},
+ // Avoid this by limiting to two digits
+ {L"%.1d", UTIL_INT},
+ {L"%.10d", UTIL_INT},
+ {L"%.100d", -1},
// Unexpected characters
{L"%ad", -1},