summaryrefslogtreecommitdiffstats
path: root/content/child/v8_value_converter_impl_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/child/v8_value_converter_impl_unittest.cc')
-rw-r--r--content/child/v8_value_converter_impl_unittest.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/child/v8_value_converter_impl_unittest.cc b/content/child/v8_value_converter_impl_unittest.cc
index 311fa7f..435ea30 100644
--- a/content/child/v8_value_converter_impl_unittest.cc
+++ b/content/child/v8_value_converter_impl_unittest.cc
@@ -14,6 +14,7 @@
#include "base/values.h"
#include "content/child/v8_value_converter_impl.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "third_party/WebKit/public/web/WebScopedMicrotaskSuppression.h"
#include "v8/include/v8.h"
namespace content {
@@ -287,6 +288,7 @@ TEST_F(V8ValueConverterImplTest, ObjectExceptions) {
v8::Local<v8::Context> context =
v8::Local<v8::Context>::New(isolate_, context_);
v8::Context::Scope context_scope(context);
+ blink::WebScopedMicrotaskSuppression microtasks_scope;
// Set up objects to throw when reading or writing 'foo'.
const char* source =
@@ -329,6 +331,7 @@ TEST_F(V8ValueConverterImplTest, ArrayExceptions) {
v8::Local<v8::Context> context =
v8::Local<v8::Context>::New(isolate_, context_);
v8::Context::Scope context_scope(context);
+ blink::WebScopedMicrotaskSuppression microtasks_scope;
const char* source = "(function() {"
"var arr = [];"
@@ -405,6 +408,7 @@ TEST_F(V8ValueConverterImplTest, Prototype) {
v8::Local<v8::Context> context =
v8::Local<v8::Context>::New(isolate_, context_);
v8::Context::Scope context_scope(context);
+ blink::WebScopedMicrotaskSuppression microtasks_scope;
const char* source = "(function() {"
"Object.prototype.foo = 'foo';"
@@ -429,6 +433,7 @@ TEST_F(V8ValueConverterImplTest, StripNullFromObjects) {
v8::Local<v8::Context> context =
v8::Local<v8::Context>::New(isolate_, context_);
v8::Context::Scope context_scope(context);
+ blink::WebScopedMicrotaskSuppression microtasks_scope;
const char* source = "(function() {"
"return { foo: undefined, bar: null };"
@@ -487,6 +492,7 @@ TEST_F(V8ValueConverterImplTest, WeirdProperties) {
v8::Local<v8::Context> context =
v8::Local<v8::Context>::New(isolate_, context_);
v8::Context::Scope context_scope(context);
+ blink::WebScopedMicrotaskSuppression microtasks_scope;
const char* source = "(function() {"
"return {"
@@ -525,6 +531,7 @@ TEST_F(V8ValueConverterImplTest, ArrayGetters) {
v8::Local<v8::Context> context =
v8::Local<v8::Context>::New(isolate_, context_);
v8::Context::Scope context_scope(context);
+ blink::WebScopedMicrotaskSuppression microtasks_scope;
const char* source = "(function() {"
"var a = [0];"
@@ -549,6 +556,7 @@ TEST_F(V8ValueConverterImplTest, UndefinedValueBehavior) {
v8::Local<v8::Context> context =
v8::Local<v8::Context>::New(isolate_, context_);
v8::Context::Scope context_scope(context);
+ blink::WebScopedMicrotaskSuppression microtasks_scope;
v8::Local<v8::Object> object;
{