Commit 8e84efba authored by Fernando Serboncini's avatar Fernando Serboncini Committed by Commit Bot

Adds TSAN threaded test for CSSFontFaceDescriptor

Bug: 722511
Change-Id: I3821a71b15056fc034788b5317bbab342f65a553
Reviewed-on: https://chromium-review.googlesource.com/677230Reviewed-by: default avatarJustin Novosad <junov@chromium.org>
Commit-Queue: Fernando Serboncini <fserb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504744}
parent 60e07df5
......@@ -5,6 +5,7 @@
#include "core/css/parser/CSSParser.h"
#include "core/css/parser/CSSParserContext.h"
#include "core/CSSPropertyNames.h"
#include "core/css/StylePropertySet.h"
#include "core/css/threaded/MultiThreadedTestUtil.h"
#include "testing/gtest/include/gtest/gtest.h"
......@@ -59,4 +60,14 @@ TSAN_TEST_F(CSSParserThreadedTest, ValuePropertyFont) {
});
}
TSAN_TEST_F(CSSParserThreadedTest, FontFaceDescriptor) {
RunOnThreads([]() {
CSSParserContext* ctx = CSSParserContext::Create(kCSSFontFaceRuleMode);
const CSSValue* v = CSSParser::ParseFontFaceDescriptor(
CSSPropertySrc, "url(myfont.ttf)", ctx);
ASSERT_TRUE(v);
EXPECT_EQ(v->CssText(), "url(\"myfont.ttf\")");
});
}
} // namespace blink
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment