diff --git a/experiments/WebScene.NativeEngine.Probe/native/webscene_css_state.h b/experiments/WebScene.NativeEngine.Probe/native/webscene_css_state.h index ab829bf7..795fbe03 100644 --- a/experiments/WebScene.NativeEngine.Probe/native/webscene_css_state.h +++ b/experiments/WebScene.NativeEngine.Probe/native/webscene_css_state.h @@ -49,6 +49,8 @@ struct compiled_css_attribute final { uint8_t operator_kind{0}; std::string value; uint8_t case_sensitivity{0}; + + bool operator==(const compiled_css_attribute&) const = default; }; struct compiled_css_compound final { diff --git a/tests/NativeWeb/shared_styles.cpp b/tests/NativeWeb/shared_styles.cpp index b165a58f..b6a0651e 100644 --- a/tests/NativeWeb/shared_styles.cpp +++ b/tests/NativeWeb/shared_styles.cpp @@ -124,10 +124,13 @@ void compare_selector(const webscene_native::css::compiled_css_selector& a, require(a.compiled_compounds.size()==b.compiled_compounds.size()); for(size_t i=0;i