summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp')
-rw-r--r--xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp b/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp
index bc9584bb53..e9120dc3a0 100644
--- a/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp
+++ b/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp
@@ -92,7 +92,7 @@ TEST_F(FM2JSContextEmbedderTest, Strings) {
}
}
-TEST_F(FM2JSContextEmbedderTest, DISABLED_Booleans) {
+TEST_F(FM2JSContextEmbedderTest, Booleans) {
ASSERT_TRUE(OpenDocument("simple_xfa.pdf"));
struct {
@@ -105,7 +105,7 @@ TEST_F(FM2JSContextEmbedderTest, DISABLED_Booleans) {
{"0 | 0", false},
{"0 or 1 | 0 or 0", true},
{"1 and 0", false},
- {"0 & 0", true}, // TODO(dsinclair) Confirm with Reader.
+ // {"0 & 0", true}, // TODO(dsinclair) Confirm with Reader.
{"0 and 1 & 0 and 0", false},
{"not(\"true\")", true},
{"not(1)", false},
@@ -126,7 +126,7 @@ TEST_F(FM2JSContextEmbedderTest, DISABLED_Booleans) {
EXPECT_TRUE(Execute(tests[i].program));
CFXJSE_Value* value = GetValue();
- EXPECT_TRUE(value->IsBoolean()) << "Program: " << tests[i].program;
+ EXPECT_TRUE(value->IsInteger()) << "Program: " << tests[i].program;
EXPECT_EQ(tests[i].result, value->ToBoolean())
<< "Program: " << tests[i].program;
}