Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1514)

Unified Diff: third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp

Issue 2726593002: Use mayNotBeMainThread() for wrapper optimization (Closed)
Patch Set: Use V8TestingScope Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/StaticRangeTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp b/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp
index 93c9e3b3b4ce83c460d0ee7a2d0bbf914f48f061..ea3e309fee1acdb8709d9cb74e9c6888a5a371a4 100644
--- a/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp
@@ -4,13 +4,14 @@
#include "core/editing/VisibleUnits.h"
+#include <ostream> // NOLINT
+#include "bindings/core/v8/V8BindingForTesting.h"
#include "core/dom/Text.h"
#include "core/editing/EditingTestBase.h"
#include "core/editing/VisiblePosition.h"
#include "core/html/TextControlElement.h"
#include "core/layout/LayoutTextFragment.h"
#include "core/layout/line/InlineTextBox.h"
-#include <ostream> // NOLINT
namespace blink {
@@ -107,6 +108,8 @@ TEST_F(VisibleUnitsTest, associatedLayoutObjectOfFirstLetterPunctuations) {
}
TEST_F(VisibleUnitsTest, associatedLayoutObjectOfFirstLetterSplit) {
+ V8TestingScope scope;
+
const char* bodyContent =
"<style>p:first-letter {color:red;}</style><p id=sample>abc</p>";
setBodyContent(bodyContent);
@@ -1365,6 +1368,8 @@ TEST_F(VisibleUnitsTest, mostBackwardCaretPositionFirstLetter) {
}
TEST_F(VisibleUnitsTest, mostBackwardCaretPositionFirstLetterSplit) {
+ V8TestingScope scope;
+
const char* bodyContent =
"<style>p:first-letter {color:red;}</style><p id=sample>abc</p>";
setBodyContent(bodyContent);
« no previous file with comments | « third_party/WebKit/Source/core/dom/StaticRangeTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698