summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/css/cssom/prepopulated_computed_style_property_map_test.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-12-10 16:19:40 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-12-10 16:01:50 +0000
commit51f6c2793adab2d864b3d2b360000ef8db1d3e92 (patch)
tree835b3b4446b012c75e80177cef9fbe6972cc7dbe /chromium/third_party/blink/renderer/core/css/cssom/prepopulated_computed_style_property_map_test.cc
parent6036726eb981b6c4b42047513b9d3f4ac865daac (diff)
downloadqtwebengine-chromium-51f6c2793adab2d864b3d2b360000ef8db1d3e92.tar.gz
BASELINE: Update Chromium to 71.0.3578.93
Change-Id: I6a32086c33670e1b033f8b10e6bf1fd4da1d105d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/css/cssom/prepopulated_computed_style_property_map_test.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/css/cssom/prepopulated_computed_style_property_map_test.cc26
1 files changed, 14 insertions, 12 deletions
diff --git a/chromium/third_party/blink/renderer/core/css/cssom/prepopulated_computed_style_property_map_test.cc b/chromium/third_party/blink/renderer/core/css/cssom/prepopulated_computed_style_property_map_test.cc
index e0cc71c85c6..4fec89eb08f 100644
--- a/chromium/third_party/blink/renderer/core/css/cssom/prepopulated_computed_style_property_map_test.cc
+++ b/chromium/third_party/blink/renderer/core/css/cssom/prepopulated_computed_style_property_map_test.cc
@@ -49,24 +49,24 @@ TEST_F(PrepopulatedComputedStylePropertyMapTest, NativePropertyAccessors) {
DummyExceptionStateForTesting exception_state;
- map->get("color", exception_state);
+ map->get(&GetDocument(), "color", exception_state);
EXPECT_FALSE(exception_state.HadException());
- map->has("color", exception_state);
+ map->has(&GetDocument(), "color", exception_state);
EXPECT_FALSE(exception_state.HadException());
- map->getAll("color", exception_state);
+ map->getAll(&GetDocument(), "color", exception_state);
EXPECT_FALSE(exception_state.HadException());
- map->get("align-contents", exception_state);
+ map->get(&GetDocument(), "align-contents", exception_state);
EXPECT_TRUE(exception_state.HadException());
exception_state.ClearException();
- map->has("align-contents", exception_state);
+ map->has(&GetDocument(), "align-contents", exception_state);
EXPECT_TRUE(exception_state.HadException());
exception_state.ClearException();
- map->getAll("align-contents", exception_state);
+ map->getAll(&GetDocument(), "align-contents", exception_state);
EXPECT_TRUE(exception_state.HadException());
exception_state.ClearException();
}
@@ -85,27 +85,29 @@ TEST_F(PrepopulatedComputedStylePropertyMapTest, CustomPropertyAccessors) {
DummyExceptionStateForTesting exception_state;
- const CSSStyleValue* foo = map->get("--foo", exception_state);
+ const CSSStyleValue* foo = map->get(&GetDocument(), "--foo", exception_state);
ASSERT_NE(nullptr, foo);
ASSERT_EQ(CSSStyleValue::kUnparsedType, foo->GetType());
EXPECT_FALSE(exception_state.HadException());
- EXPECT_EQ(true, map->has("--foo", exception_state));
+ EXPECT_EQ(true, map->has(&GetDocument(), "--foo", exception_state));
EXPECT_FALSE(exception_state.HadException());
- CSSStyleValueVector fooAll = map->getAll("--foo", exception_state);
+ CSSStyleValueVector fooAll =
+ map->getAll(&GetDocument(), "--foo", exception_state);
EXPECT_EQ(1U, fooAll.size());
ASSERT_NE(nullptr, fooAll[0]);
ASSERT_EQ(CSSStyleValue::kUnparsedType, fooAll[0]->GetType());
EXPECT_FALSE(exception_state.HadException());
- EXPECT_EQ(nullptr, map->get("--quix", exception_state));
+ EXPECT_EQ(nullptr, map->get(&GetDocument(), "--quix", exception_state));
EXPECT_FALSE(exception_state.HadException());
- EXPECT_EQ(false, map->has("--quix", exception_state));
+ EXPECT_EQ(false, map->has(&GetDocument(), "--quix", exception_state));
EXPECT_FALSE(exception_state.HadException());
- EXPECT_EQ(CSSStyleValueVector(), map->getAll("--quix", exception_state));
+ EXPECT_EQ(CSSStyleValueVector(),
+ map->getAll(&GetDocument(), "--quix", exception_state));
EXPECT_FALSE(exception_state.HadException());
}