chromium/third_party/blink/renderer/core/layout/custom/layout_worklet_test.cc

// Copyright 2018 The Chromium Authors
// 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/core/layout/custom/layout_worklet.h"

#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/module_record.h"
#include "third_party/blink/renderer/bindings/core/v8/script_evaluation_result.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_gc_controller.h"
#include "third_party/blink/renderer/bindings/core/v8/worker_or_worklet_script_controller.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/layout/custom/css_layout_definition.h"
#include "third_party/blink/renderer/core/layout/custom/layout_worklet_global_scope.h"
#include "third_party/blink/renderer/core/layout/custom/layout_worklet_global_scope_proxy.h"
#include "third_party/blink/renderer/core/script/js_module_script.h"
#include "third_party/blink/renderer/core/testing/module_test_base.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"

namespace blink {

class LayoutWorkletTest : public PageTestBase, public ModuleTestBase {};

TEST_F(LayoutWorkletTest, ParseProperties) {}

// TODO(ikilpatrick): Move all the tests below to wpt tests once we have the
// layout API actually have effects that we can test in script.

TEST_F(LayoutWorkletTest, RegisterLayout) {}

TEST_F(LayoutWorkletTest, RegisterLayout_EmptyName) {}

TEST_F(LayoutWorkletTest, RegisterLayout_Duplicate) {}

TEST_F(LayoutWorkletTest, RegisterLayout_NoIntrinsicSizes) {}

TEST_F(LayoutWorkletTest, RegisterLayout_ThrowingPropertyGetter) {}

TEST_F(LayoutWorkletTest, RegisterLayout_BadPropertyGetter) {}

TEST_F(LayoutWorkletTest, RegisterLayout_NoPrototype) {}

TEST_F(LayoutWorkletTest, RegisterLayout_BadPrototype) {}

TEST_F(LayoutWorkletTest, RegisterLayout_BadIntrinsicSizes) {}

TEST_F(LayoutWorkletTest, RegisterLayout_NoLayout) {}

TEST_F(LayoutWorkletTest, RegisterLayout_BadLayout) {}

}  // namespace blink