Skip to content

Commit

Permalink
Moved webkit_unit_tests target to controller/
Browse files Browse the repository at this point in the history
As part of Onion Soup 2.0, we are removing the web/ directory. The
remaining tests in the webkit_unit_tests target are all blink bindings
tests. This target continues to exist, but the build rule now lives in
controller/. 

Bug: 712963
Change-Id: I6af8552e3c81b98cd68eb787e99b8ce0bce3c9ab
Reviewed-on: https://chromium-review.googlesource.com/599129
Commit-Queue: Nicholas Verne <nverne@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#492926}
  • Loading branch information
Nicholas Verne authored and Commit Bot committed Aug 9, 2017
1 parent 559684d commit e6c400f
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 70 deletions.
2 changes: 1 addition & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ group("gn_all") {
"//mojo/edk/test:mojo_public_system_unittests",
"//net:net_perftests",
"//storage:storage_unittests",
"//third_party/WebKit/Source/controller:webkit_unit_tests",
"//third_party/WebKit/Source/platform:blink_platform_unittests",
"//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
"//third_party/WebKit/Source/platform/wtf:wtf_unittests",
"//third_party/WebKit/Source/web:webkit_unit_tests",
"//third_party/angle/src/tests:angle_end2end_tests",
"//third_party/angle/src/tests:angle_unittests",
"//third_party/angle/src/tests:angle_white_box_tests",
Expand Down
2 changes: 1 addition & 1 deletion testing/buildbot/gn_isolate_map.pyl
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@
],
},
"webkit_unit_tests": {
"label": "//third_party/WebKit/Source/web:webkit_unit_tests",
"label": "//third_party/WebKit/Source/controller:webkit_unit_tests",
"type": "console_test_launcher",
},
"webview_instrumentation_test_apk": {
Expand Down
13 changes: 12 additions & 1 deletion third_party/WebKit/LayoutTests/TestExpectations
Original file line number Diff line number Diff line change
Expand Up @@ -2919,9 +2919,18 @@ crbug.com/736177 [ Mac10.12 ] fast/css/clip-zooming.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/css/h1-in-section-elements.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/css/rem-calc-dynamic-scaling.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/css/rem-dynamic-scaling.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/css/text-overflow-input.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/dom/HTMLMeterElement/meter-optimums.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/dynamic/012.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/forms/control-restrict-line-height.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/forms/form-element-geometry.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/forms/input-appearance-height.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/forms/placeholder-position.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/forms/search/search-appearance-basic.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/forms/search/search-cancel-button-style-sharing.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/forms/search/search-display-none-cancel-button.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/forms/search/search-rtl.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/forms/search/searchfield-heights.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/inline/absolute-positioned-inline-in-centred-block.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks.html [ Failure Pass ]
crbug.com/736177 [ Mac10.12 ] fast/lists/ordered-list-with-no-ol-tag.html [ Failure Pass ]
Expand Down Expand Up @@ -3029,9 +3038,11 @@ crbug.com/626703 [ Win7 ] external/wpt/html/semantics/tabular-data/processing-mo

# Sheriff failure 2017-08-07
crbug.com/708499 [ Win7 Mac10.11 Retina Debug ] virtual/wheelscrolllatching/fast/compositor-wheel-scroll-latching/touchpad-scroll-impl-to-main.html [ Failure Pass ]
crbug.com/752845 [ Win7 Debug ] inspector/sha1.html [ Crash ]
crbug.com/752845 [ Win ] inspector/sha1.html [ Pass Crash ]

# Ganesh dither changes
crbug.com/753462 virtual/gpu/fast/canvas/canvas-text-alignment.html [ NeedsManualRebaseline ]
crbug.com/753462 virtual/gpu/fast/canvas/fillrect_gradient.html [ NeedsManualRebaseline ]
crbug.com/753462 virtual/gpu/fast/canvas/gradient-add-second-start-end-stop.html [ NeedsManualRebaseline ]

crbug.com/746904 [ Win ] fast/text/ellipsis-in-relative-inline.html [ Failure Pass ]
2 changes: 1 addition & 1 deletion third_party/WebKit/PRESUBMIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def _CheckForForbiddenNamespace(input_api, output_api):
def source_file_filter(path):
return input_api.FilterSourceFile(path,
white_list=[r'third_party/WebKit/Source/.*\.(h|cpp)$'],
black_list=[r'third_party/WebKit/Source/(platform|wtf|web)/'])
black_list=[r'third_party/WebKit/Source/(platform|wtf|web|controller)/'])

comment_re = input_api.re.compile(r'^\s*//')
result = []
Expand Down
59 changes: 59 additions & 0 deletions third_party/WebKit/Source/controller/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,62 @@ component("controller") {
configs += remove_webcore_symbols_config
}
}

group("webkit_unit_tests_data") {
data = [
"../core/testing/data/",
"../core/paint/test_data/",
]
}

test("webkit_unit_tests") {
visibility = [] # Allow re-assignment of list.
visibility = [ "*" ]

sources = [
"tests/RunAllTests.cpp",
]
sources += bindings_unittest_files

deps = [
":controller",
"//base",
"//base:i18n",
"//base/test:test_support",
"//content/test:test_support",
"//gpu:test_support",
"//services/device/public/interfaces:interfaces_blink",
"//testing/gmock",
"//testing/gtest",
"//third_party/WebKit/Source/core:unit_tests",
"//third_party/WebKit/Source/modules:unit_tests",
"//third_party/WebKit/Source/modules/exported:test_support",
"//third_party/WebKit/Source/platform:test_support",
"//third_party/WebKit/Source/platform:unit_tests",
"//third_party/WebKit/Source/platform/wtf",
"//third_party/libwebp",
"//third_party/zlib",
"//url",
"//v8",
]

data_deps = [
":webkit_unit_tests_data",
"//content/shell:pak",
]

configs += [
"//third_party/WebKit/Source:config",
"//third_party/WebKit/Source:inside_blink",
"//third_party/WebKit/Source/core:blink_core_pch",
]

if (is_android) {
deps += [
"//base:base_java",
"//content/public/android:content_java",
"//content/shell/android:content_shell_assets",
"//net/android:net_java",
]
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
include_rules = [
"+base",
"+mojo/public/cpp/bindings",
"+web/tests",
]

specific_include_rules = {
Expand Down
File renamed without changes.
64 changes: 0 additions & 64 deletions third_party/WebKit/Source/web/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -8,67 +8,3 @@ import("//third_party/WebKit/Source/bindings/bindings.gni")
import("//third_party/WebKit/Source/config.gni")
import("//third_party/WebKit/Source/core/core.gni")
import("//third_party/WebKit/Source/modules/modules.gni")

visibility = [ "//third_party/WebKit/*" ]

group("webkit_unit_tests_data") {
data = [
"../core/testing/data/",
"../core/paint/test_data/",
]
}

test("webkit_unit_tests") {
visibility = [] # Allow re-assignment of list.
visibility = [ "*" ]

sources = [
# FIXME: Move the tests from web/tests/ to appropriate places.
# crbug.com/353585

"tests/RunAllTests.cpp",
]
sources += bindings_unittest_files

deps = [
"//base",
"//base:i18n",
"//base/test:test_support",
"//content/test:test_support",
"//gpu:test_support",
"//services/device/public/interfaces:interfaces_blink",
"//testing/gmock",
"//testing/gtest",
"//third_party/WebKit/Source/controller",
"//third_party/WebKit/Source/core:unit_tests",
"//third_party/WebKit/Source/modules:unit_tests",
"//third_party/WebKit/Source/modules/exported:test_support",
"//third_party/WebKit/Source/platform:test_support",
"//third_party/WebKit/Source/platform:unit_tests",
"//third_party/WebKit/Source/platform/wtf",
"//third_party/libwebp",
"//third_party/zlib",
"//url",
"//v8",
]

data_deps = [
":webkit_unit_tests_data",
"//content/shell:pak",
]

configs += [
"//third_party/WebKit/Source:config",
"//third_party/WebKit/Source:inside_blink",
"//third_party/WebKit/Source/core:blink_core_pch",
]

if (is_android) {
deps += [
"//base:base_java",
"//content/public/android:content_java",
"//content/shell/android:content_shell_assets",
"//net/android:net_java",
]
}
}
2 changes: 1 addition & 1 deletion third_party/WebKit/public/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ group("all_blink") {

public_deps = [
"//third_party/WebKit/Source/controller",
"//third_party/WebKit/Source/controller:webkit_unit_tests",
"//third_party/WebKit/Source/core",
"//third_party/WebKit/Source/modules",
"//third_party/WebKit/Source/platform:blink_platform_unittests",
"//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
"//third_party/WebKit/Source/platform/wtf:wtf_unittests",
"//third_party/WebKit/Source/web:webkit_unit_tests",
]
}

Expand Down

0 comments on commit e6c400f

Please sign in to comment.