Skip to content

Commit

Permalink
Bug 1513205 - Also update the tests to match the Google coding style …
Browse files Browse the repository at this point in the history
…r=Ehsan

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D14595
  • Loading branch information
sylvestre committed Dec 14, 2018
1 parent e36e99d commit 13452f3
Show file tree
Hide file tree
Showing 381 changed files with 26,068 additions and 31,537 deletions.
14 changes: 6 additions & 8 deletions dom/base/test/gtest/TestContentUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
#include "mozilla/CycleCollectedJSContext.h"
#include "mozilla/dom/SimpleGlobalObject.h"

TEST(DOM_Base_ContentUtils, StringifyJSON_EmptyValue)
{
JSObject* globalObject =
mozilla::dom::SimpleGlobalObject::Create(mozilla::dom::SimpleGlobalObject::GlobalType::BindingDetail);
TEST(DOM_Base_ContentUtils, StringifyJSON_EmptyValue) {
JSObject* globalObject = mozilla::dom::SimpleGlobalObject::Create(
mozilla::dom::SimpleGlobalObject::GlobalType::BindingDetail);
mozilla::dom::AutoJSAPI jsAPI;
ASSERT_TRUE(jsAPI.Init(globalObject));
JSContext* cx = jsAPI.cx();
Expand All @@ -26,10 +25,9 @@ TEST(DOM_Base_ContentUtils, StringifyJSON_EmptyValue)
ASSERT_TRUE(serializedValue.EqualsLiteral("null"));
}

TEST(DOM_Base_ContentUtils, StringifyJSON_Object)
{
JSObject* globalObject =
mozilla::dom::SimpleGlobalObject::Create(mozilla::dom::SimpleGlobalObject::GlobalType::BindingDetail);
TEST(DOM_Base_ContentUtils, StringifyJSON_Object) {
JSObject* globalObject = mozilla::dom::SimpleGlobalObject::Create(
mozilla::dom::SimpleGlobalObject::GlobalType::BindingDetail);
mozilla::dom::AutoJSAPI jsAPI;
ASSERT_TRUE(jsAPI.Init(globalObject));
JSContext* cx = jsAPI.cx();
Expand Down
Loading

0 comments on commit 13452f3

Please sign in to comment.