blob: fc3de582bdd5e43ffc8dce03d5b91d833ec20b16 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/geometry/int_rect.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
TEST(IntRectTest, ToString) {
IntRect empty_rect = IntRect();
EXPECT_EQ("0,0 0x0", empty_rect.ToString());
IntRect rect(1, 2, 3, 4);
EXPECT_EQ("1,2 3x4", rect.ToString());
}
} // namespace blink