`TypeError: testElement.$$ is not a function` in new settings unit test

40 views
Skip to first unread message

odej...@chromium.org

unread,
Dec 6, 2018, 4:30:04 PM12/6/18
to Chromium-Polymer
Hi,

I have a new unit test at //chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js for a new Polymer element that I added in //chrome/browser/resources/settings/site_settings in the files chooser_exception_list_entry.html and chooser_exception_list_entry.js.

I added an entry for the test in cr_settings_browsertest.cc using the existing entries for CrSettingsSiteListTest and CrSettingsSiteListEntryTest as reference. I also added this to the webui_polymer2_browser_tests.filter. For the actual test, I used a combination of site_list_tests.js and site_list_entry_tests.js as a reference in creating the test.

I have the change uploaded to https://chromium-review.googlesource.com/c/chromium/src/+/1357610. I am able to run the tests successfully in my local build on Linux and Mac in both a debug and release build. However, when I run the tests using the try bots, they fail with the following error:

[ RUN      ] CrSettingsChooserExceptionListEntryTest.All
[11955:19207:1206/122932.237950:WARNING:notification_platform_bridge_mac.mm(521)] AlertNotificationService: XPC connection invalidated.
[11971:775:1206/122932.660152:ERROR:vt_video_encode_accelerator_mac.cc(513)]  VTCompressionSessionCreate failed: -12908
[11955:775:1206/122933.158300:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11
[11971:775:1206/122933.517468:WARNING:ca_layer_tree_coordinator.mm(55)] Blank frame: No overlays or CALayers
[11955:775:1206/122934.146469:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11
[11955:775:1206/122934.254089:WARNING:CONSOLE(0)] "HTML Imports is deprecated and will be removed in M73, around March 2019. Please use ES modules instead. See https://www.chromestatus.com/features/5144752345317376 for more details.", source:  (0)
[11955:775:1206/122937.015615:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11
[11955:775:1206/122937.180002:INFO:CONSOLE(1281)] "Running TestCase CrSettingsChooserExceptionListEntryTest.All", source: file:///b/s/w/ir/chrome/test/data/webui/test_api.js (1281)
[11955:775:1206/122937.691031:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry User granted chooser exceptions should show the reset button
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:73:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[11955:775:1206/122937.699146:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Policy granted chooser exceptions should show the policy indicator icon
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:103:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[11955:775:1206/122937.705298:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Site exceptions from mixed sources should display properly
TypeError: Cannot read property 'listContainer' of undefined
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:136:27)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[11955:775:1206/122937.710054:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The show-tooltip event is fired when mouse hovers over policy indicator
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:179:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[11955:775:1206/122937.714079:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The reset button calls the resetChooserExceptionForSite method
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:214:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[11955:775:1206/122937.718018:ERROR:web_ui_test_handler.cc(100)] Test Errors: 5/5 tests had failed assertions.
[11955:775:1206/122937.718347:ERROR:web_ui_browser_test.cc(493)] CONDITION FAILURE: encountered javascript console error(s):
[11955:775:1206/122937.718376:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[11955:775:1206/122937.691031:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry User granted chooser exceptions should show the reset button
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:73:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[11955:775:1206/122937.718425:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[11955:775:1206/122937.699146:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Policy granted chooser exceptions should show the policy indicator icon
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:103:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[11955:775:1206/122937.718447:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[11955:775:1206/122937.705298:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Site exceptions from mixed sources should display properly
TypeError: Cannot read property 'listContainer' of undefined
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:136:27)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[11955:775:1206/122937.718466:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[11955:775:1206/122937.710054:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The show-tooltip event is fired when mouse hovers over policy indicator
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:179:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[11955:775:1206/122937.718484:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[11955:775:1206/122937.714079:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The reset button calls the resetChooserExceptionForSite method
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:214:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[11955:775:1206/122937.718503:ERROR:web_ui_browser_test.cc(497)] JS call assumed failed, because JS console error(s) found.
gen/chrome/test/data/webui/settings/cr_settings_browsertest-gen.cc:1553: Failure
Value of: RunJavascriptTestF( true, "CrSettingsChooserExceptionListEntryTest", "All")
  Actual: false
Expected: true
Stack trace:
0   browser_tests                       0x000000010232ecab testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(int) + 91
1   browser_tests                       0x000000010232e669 testing::internal::AssertHelper::operator=(testing::Message const&) const + 89
2   browser_tests                       0x00000001021d5fa4 CrSettingsChooserExceptionListEntryTest_All_Test::RunTestOnMainThread() + 1204
3   browser_tests                       0x0000000106da9618 content::BrowserTestBase::ProxyRunTestOnMainThreadLoop() + 584
4   browser_tests                       0x0000000106637256 ChromeBrowserMainParts::PreMainMessageLoopRunImpl() + 4758
5   browser_tests                       0x0000000106635efd ChromeBrowserMainParts::PreMainMessageLoopRun() + 45
6   browser_tests                       0x00000001038942d2 content::BrowserMainLoop::PreMainMessageLoopRun() + 50
7   browser_tests                       0x0000000103e8f785 content::StartupTaskRunner::RunAllTasksNow() + 117
8   browser_tests                       0x0000000103892d65 content::BrowserMainLoop::CreateStartupTasks() + 885
9   browser_tests                       0x0000000103896ba9 content::BrowserMainRunnerImpl::Initialize(content::MainFunctionParams const&) + 89
10  browser_tests                       0x0000000103890d7b content::BrowserMain(content::MainFunctionParams const&) + 203
11  browser_tests                       0x0000000106029be3 content::ContentMainRunnerImpl::RunServiceManager(content::MainFunctionParams&, bool) + 259
12  browser_tests                       0x0000000106029ab0 content::ContentMainRunnerImpl::Run(bool) + 464
13  browser_tests                       0x0000000109be54de service_manager::Main(service_manager::MainParams const&) + 3166
14  browser_tests                       0x0000000106028ba4 content::ContentMain(content::ContentMainParams const&) + 68
15  browser_tests                       0x0000000106da91d9 content::BrowserTestBase::SetUp() + 3609
16  browser_tests                       0x000000010658c2fe InProcessBrowserTest::SetUp() + 606

[11955:39683:1206/122938.032054:WARNING:discardable_shared_memory_manager.cc(410)] Some MojoDiscardableSharedMemoryManagerImpls are still alive. They will be leaked.
[11955:775:1206/122938.058857:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown.
[11955:775:1206/122938.058932:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown.
[  FAILED  ] CrSettingsChooserExceptionListEntryTest.All, where TypeParam =  and GetParam() =  (6157 ms)
[ RUN      ] CrSettingsChooserExceptionListEntryTest.All
[14403:3075:1206/123306.932297:WARNING:notification_platform_bridge_mac.mm(521)] AlertNotificationService: XPC connection invalidated.
[14408:775:1206/123307.188224:ERROR:vt_video_encode_accelerator_mac.cc(513)]  VTCompressionSessionCreate failed: -12908
[14403:775:1206/123307.438062:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11
[14408:775:1206/123307.837192:WARNING:ca_layer_tree_coordinator.mm(55)] Blank frame: No overlays or CALayers
[14403:775:1206/123308.276651:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11
[14403:775:1206/123308.280657:WARNING:CONSOLE(0)] "HTML Imports is deprecated and will be removed in M73, around March 2019. Please use ES modules instead. See https://www.chromestatus.com/features/5144752345317376 for more details.", source:  (0)
[14403:775:1206/123310.567679:INFO:CONSOLE(1281)] "Running TestCase CrSettingsChooserExceptionListEntryTest.All", source: file:///b/s/w/ir/chrome/test/data/webui/test_api.js (1281)
[14403:775:1206/123310.741226:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11
[14403:775:1206/123310.937601:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry User granted chooser exceptions should show the reset button
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:73:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14403:775:1206/123310.942240:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Policy granted chooser exceptions should show the policy indicator icon
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:103:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14403:775:1206/123310.946040:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Site exceptions from mixed sources should display properly
TypeError: Cannot read property 'listContainer' of undefined
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:136:27)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14403:775:1206/123310.949889:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The show-tooltip event is fired when mouse hovers over policy indicator
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:179:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14403:775:1206/123310.954544:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The reset button calls the resetChooserExceptionForSite method
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:214:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14403:775:1206/123310.957963:ERROR:web_ui_test_handler.cc(100)] Test Errors: 5/5 tests had failed assertions.
[14403:775:1206/123310.964064:ERROR:web_ui_browser_test.cc(493)] CONDITION FAILURE: encountered javascript console error(s):
[14403:775:1206/123310.964132:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14403:775:1206/123310.937601:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry User granted chooser exceptions should show the reset button
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:73:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14403:775:1206/123310.964201:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14403:775:1206/123310.942240:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Policy granted chooser exceptions should show the policy indicator icon
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:103:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14403:775:1206/123310.964239:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14403:775:1206/123310.946040:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Site exceptions from mixed sources should display properly
TypeError: Cannot read property 'listContainer' of undefined
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:136:27)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14403:775:1206/123310.964273:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14403:775:1206/123310.949889:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The show-tooltip event is fired when mouse hovers over policy indicator
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:179:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14403:775:1206/123310.964306:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14403:775:1206/123310.954544:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The reset button calls the resetChooserExceptionForSite method
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:214:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14403:775:1206/123310.964339:ERROR:web_ui_browser_test.cc(497)] JS call assumed failed, because JS console error(s) found.
gen/chrome/test/data/webui/settings/cr_settings_browsertest-gen.cc:1553: Failure
Value of: RunJavascriptTestF( true, "CrSettingsChooserExceptionListEntryTest", "All")
  Actual: false
Expected: true
Stack trace:
0   browser_tests                       0x000000010bef3cab testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(int) + 91
1   browser_tests                       0x000000010bef3669 testing::internal::AssertHelper::operator=(testing::Message const&) const + 89
2   browser_tests                       0x000000010bd9afa4 CrSettingsChooserExceptionListEntryTest_All_Test::RunTestOnMainThread() + 1204
3   browser_tests                       0x000000011096e618 content::BrowserTestBase::ProxyRunTestOnMainThreadLoop() + 584
4   browser_tests                       0x00000001101fc256 ChromeBrowserMainParts::PreMainMessageLoopRunImpl() + 4758
5   browser_tests                       0x00000001101faefd ChromeBrowserMainParts::PreMainMessageLoopRun() + 45
6   browser_tests                       0x000000010d4592d2 content::BrowserMainLoop::PreMainMessageLoopRun() + 50
7   browser_tests                       0x000000010da54785 content::StartupTaskRunner::RunAllTasksNow() + 117
8   browser_tests                       0x000000010d457d65 content::BrowserMainLoop::CreateStartupTasks() + 885
9   browser_tests                       0x000000010d45bba9 content::BrowserMainRunnerImpl::Initialize(content::MainFunctionParams const&) + 89
10  browser_tests                       0x000000010d455d7b content::BrowserMain(content::MainFunctionParams const&) + 203
11  browser_tests                       0x000000010fbeebe3 content::ContentMainRunnerImpl::RunServiceManager(content::MainFunctionParams&, bool) + 259
12  browser_tests                       0x000000010fbeeab0 content::ContentMainRunnerImpl::Run(bool) + 464
13  browser_tests                       0x00000001137aa4de service_manager::Main(service_manager::MainParams const&) + 3166
14  browser_tests                       0x000000010fbedba4 content::ContentMain(content::ContentMainParams const&) + 68
15  browser_tests                       0x000000011096e1d9 content::BrowserTestBase::SetUp() + 3609
16  browser_tests                       0x00000001101512fe InProcessBrowserTest::SetUp() + 606

[14403:38915:1206/123311.221855:WARNING:discardable_shared_memory_manager.cc(410)] Some MojoDiscardableSharedMemoryManagerImpls are still alive. They will be leaked.
[14403:775:1206/123311.234948:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown.
[14403:775:1206/123311.234999:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown.
[  FAILED  ] CrSettingsChooserExceptionListEntryTest.All, where TypeParam =  and GetParam() =  (4629 ms)
[ RUN      ] CrSettingsChooserExceptionListEntryTest.All
[14416:4355:1206/123311.921040:WARNING:notification_platform_bridge_mac.mm(521)] AlertNotificationService: XPC connection invalidated.
[14422:775:1206/123312.137568:ERROR:vt_video_encode_accelerator_mac.cc(513)]  VTCompressionSessionCreate failed: -12908
[14416:775:1206/123312.371638:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11
[14422:775:1206/123312.755337:WARNING:ca_layer_tree_coordinator.mm(55)] Blank frame: No overlays or CALayers
[14416:775:1206/123313.214252:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11
[14416:775:1206/123313.255482:WARNING:CONSOLE(0)] "HTML Imports is deprecated and will be removed in M73, around March 2019. Please use ES modules instead. See https://www.chromestatus.com/features/5144752345317376 for more details.", source:  (0)
[14416:775:1206/123315.535331:INFO:CONSOLE(1281)] "Running TestCase CrSettingsChooserExceptionListEntryTest.All", source: file:///b/s/w/ir/chrome/test/data/webui/test_api.js (1281)
[14416:775:1206/123315.903016:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry User granted chooser exceptions should show the reset button
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:73:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14416:775:1206/123315.905494:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11
[14416:775:1206/123315.909941:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Policy granted chooser exceptions should show the policy indicator icon
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:103:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14416:775:1206/123315.914883:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Site exceptions from mixed sources should display properly
TypeError: Cannot read property 'listContainer' of undefined
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:136:27)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14416:775:1206/123315.917915:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The show-tooltip event is fired when mouse hovers over policy indicator
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:179:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14416:775:1206/123315.921868:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The reset button calls the resetChooserExceptionForSite method
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:214:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14416:775:1206/123315.924475:ERROR:web_ui_test_handler.cc(100)] Test Errors: 5/5 tests had failed assertions.
[14416:775:1206/123315.924773:ERROR:web_ui_browser_test.cc(493)] CONDITION FAILURE: encountered javascript console error(s):
[14416:775:1206/123315.924803:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14416:775:1206/123315.903016:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry User granted chooser exceptions should show the reset button
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:73:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14416:775:1206/123315.924852:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14416:775:1206/123315.909941:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Policy granted chooser exceptions should show the policy indicator icon
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:103:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14416:775:1206/123315.924874:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14416:775:1206/123315.914883:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Site exceptions from mixed sources should display properly
TypeError: Cannot read property 'listContainer' of undefined
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:136:27)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14416:775:1206/123315.924894:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14416:775:1206/123315.917915:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The show-tooltip event is fired when mouse hovers over policy indicator
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:179:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14416:775:1206/123315.924913:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14416:775:1206/123315.921868:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The reset button calls the resetChooserExceptionForSite method
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:214:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14416:775:1206/123315.924931:ERROR:web_ui_browser_test.cc(497)] JS call assumed failed, because JS console error(s) found.
gen/chrome/test/data/webui/settings/cr_settings_browsertest-gen.cc:1553: Failure
Value of: RunJavascriptTestF( true, "CrSettingsChooserExceptionListEntryTest", "All")
  Actual: false
Expected: true
Stack trace:
0   browser_tests                       0x0000000105f55cab testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(int) + 91
1   browser_tests                       0x0000000105f55669 testing::internal::AssertHelper::operator=(testing::Message const&) const + 89
2   browser_tests                       0x0000000105dfcfa4 CrSettingsChooserExceptionListEntryTest_All_Test::RunTestOnMainThread() + 1204
3   browser_tests                       0x000000010a9d0618 content::BrowserTestBase::ProxyRunTestOnMainThreadLoop() + 584
4   browser_tests                       0x000000010a25e256 ChromeBrowserMainParts::PreMainMessageLoopRunImpl() + 4758
5   browser_tests                       0x000000010a25cefd ChromeBrowserMainParts::PreMainMessageLoopRun() + 45
6   browser_tests                       0x00000001074bb2d2 content::BrowserMainLoop::PreMainMessageLoopRun() + 50
7   browser_tests                       0x0000000107ab6785 content::StartupTaskRunner::RunAllTasksNow() + 117
8   browser_tests                       0x00000001074b9d65 content::BrowserMainLoop::CreateStartupTasks() + 885
9   browser_tests                       0x00000001074bdba9 content::BrowserMainRunnerImpl::Initialize(content::MainFunctionParams const&) + 89
10  browser_tests                       0x00000001074b7d7b content::BrowserMain(content::MainFunctionParams const&) + 203
11  browser_tests                       0x0000000109c50be3 content::ContentMainRunnerImpl::RunServiceManager(content::MainFunctionParams&, bool) + 259
12  browser_tests                       0x0000000109c50ab0 content::ContentMainRunnerImpl::Run(bool) + 464
13  browser_tests                       0x000000010d80c4de service_manager::Main(service_manager::MainParams const&) + 3166
14  browser_tests                       0x0000000109c4fba4 content::ContentMain(content::ContentMainParams const&) + 68
15  browser_tests                       0x000000010a9d01d9 content::BrowserTestBase::SetUp() + 3609
16  browser_tests                       0x000000010a1b32fe InProcessBrowserTest::SetUp() + 606

[14416:25347:1206/123316.201049:WARNING:discardable_shared_memory_manager.cc(410)] Some MojoDiscardableSharedMemoryManagerImpls are still alive. They will be leaked.
[14416:775:1206/123316.215571:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown.
[14416:775:1206/123316.215640:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown.
[  FAILED  ] CrSettingsChooserExceptionListEntryTest.All, where TypeParam =  and GetParam() =  (4581 ms)
[ RUN      ] CrSettingsChooserExceptionListEntryTest.All
[14427:2819:1206/123316.988937:WARNING:notification_platform_bridge_mac.mm(521)] AlertNotificationService: XPC connection invalidated.
[14432:775:1206/123317.229989:ERROR:vt_video_encode_accelerator_mac.cc(513)]  VTCompressionSessionCreate failed: -12908
[14427:775:1206/123317.434453:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11
[14432:775:1206/123317.783727:WARNING:ca_layer_tree_coordinator.mm(55)] Blank frame: No overlays or CALayers
[14427:87043:1206/123318.116319:ERROR:process_mac.cc(91)] task_policy_set TASK_CATEGORY_POLICY: (ipc/send) invalid destination port (0x10000003)
[14427:775:1206/123318.232678:WARNING:CONSOLE(0)] "HTML Imports is deprecated and will be removed in M73, around March 2019. Please use ES modules instead. See https://www.chromestatus.com/features/5144752345317376 for more details.", source:  (0)
[14427:775:1206/123318.279537:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11
[14427:775:1206/123320.059886:INFO:CONSOLE(1281)] "Running TestCase CrSettingsChooserExceptionListEntryTest.All", source: file:///b/s/w/ir/chrome/test/data/webui/test_api.js (1281)
[14427:775:1206/123320.416976:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry User granted chooser exceptions should show the reset button
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:73:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14427:775:1206/123320.425893:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Policy granted chooser exceptions should show the policy indicator icon
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:103:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14427:775:1206/123320.429396:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Site exceptions from mixed sources should display properly
TypeError: Cannot read property 'listContainer' of undefined
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:136:27)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14427:775:1206/123320.433151:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The show-tooltip event is fired when mouse hovers over policy indicator
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:179:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14427:775:1206/123320.438030:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The reset button calls the resetChooserExceptionForSite method
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:214:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
[14427:775:1206/123320.440509:ERROR:web_ui_test_handler.cc(100)] Test Errors: 5/5 tests had failed assertions.
[14427:775:1206/123320.440821:ERROR:web_ui_browser_test.cc(493)] CONDITION FAILURE: encountered javascript console error(s):
[14427:775:1206/123320.440851:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14427:775:1206/123320.416976:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry User granted chooser exceptions should show the reset button
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:73:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14427:775:1206/123320.440900:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14427:775:1206/123320.425893:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Policy granted chooser exceptions should show the policy indicator icon
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:103:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14427:775:1206/123320.440923:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14427:775:1206/123320.429396:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry Site exceptions from mixed sources should display properly
TypeError: Cannot read property 'listContainer' of undefined
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:136:27)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14427:775:1206/123320.440943:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14427:775:1206/123320.433151:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The show-tooltip event is fired when mouse hovers over policy indicator
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:179:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14427:775:1206/123320.440962:ERROR:web_ui_browser_test.cc(495)] JS ERROR: '[14427:775:1206/123320.438030:ERROR:CONSOLE(48)] "Mocha test failed: ChooserExceptionListEntry The reset button calls the resetChooserExceptionForSite method
TypeError: testElement.$$ is not a function
    at Context.<anonymous> (file:///b/s/w/ir/chrome/test/data/webui/settings/chooser_exception_list_entry_tests.js:214:43)
", source: file:///b/s/w/ir/chrome/test/data/webui/mocha_adapter.js (48)
'
[14427:775:1206/123320.440981:ERROR:web_ui_browser_test.cc(497)] JS call assumed failed, because JS console error(s) found.
gen/chrome/test/data/webui/settings/cr_settings_browsertest-gen.cc:1553: Failure
Value of: RunJavascriptTestF( true, "CrSettingsChooserExceptionListEntryTest", "All")
  Actual: false
Expected: true
Stack trace:
0   browser_tests                       0x000000010783bcab testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(int) + 91
1   browser_tests                       0x000000010783b669 testing::internal::AssertHelper::operator=(testing::Message const&) const + 89
2   browser_tests                       0x00000001076e2fa4 CrSettingsChooserExceptionListEntryTest_All_Test::RunTestOnMainThread() + 1204
3   browser_tests                       0x000000010c2b6618 content::BrowserTestBase::ProxyRunTestOnMainThreadLoop() + 584
4   browser_tests                       0x000000010bb44256 ChromeBrowserMainParts::PreMainMessageLoopRunImpl() + 4758
5   browser_tests                       0x000000010bb42efd ChromeBrowserMainParts::PreMainMessageLoopRun() + 45
6   browser_tests                       0x0000000108da12d2 content::BrowserMainLoop::PreMainMessageLoopRun() + 50
7   browser_tests                       0x000000010939c785 content::StartupTaskRunner::RunAllTasksNow() + 117
8   browser_tests                       0x0000000108d9fd65 content::BrowserMainLoop::CreateStartupTasks() + 885
9   browser_tests                       0x0000000108da3ba9 content::BrowserMainRunnerImpl::Initialize(content::MainFunctionParams const&) + 89
10  browser_tests                       0x0000000108d9dd7b content::BrowserMain(content::MainFunctionParams const&) + 203
11  browser_tests                       0x000000010b536be3 content::ContentMainRunnerImpl::RunServiceManager(content::MainFunctionParams&, bool) + 259
12  browser_tests                       0x000000010b536ab0 content::ContentMainRunnerImpl::Run(bool) + 464
13  browser_tests                       0x000000010f0f24de service_manager::Main(service_manager::MainParams const&) + 3166
14  browser_tests                       0x000000010b535ba4 content::ContentMain(content::ContentMainParams const&) + 68
15  browser_tests                       0x000000010c2b61d9 content::BrowserTestBase::SetUp() + 3609
16  browser_tests                       0x000000010ba992fe InProcessBrowserTest::SetUp() + 606

[14427:40195:1206/123320.691818:WARNING:discardable_shared_memory_manager.cc(410)] Some MojoDiscardableSharedMemoryManagerImpls are still alive. They will be leaked.
[14427:775:1206/123320.705307:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown.
[14427:775:1206/123320.705358:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown.
[  FAILED  ] CrSettingsChooserExceptionListEntryTest.All, where TypeParam =  and GetParam() =  (3964 ms)


I'm not sure what else is needed to get the test to run properly.

Demetrios Papadopoulos

unread,
Dec 6, 2018, 5:12:17 PM12/6/18
to odej...@chromium.org, chromium...@chromium.org
I briefly looked at the CL and did not spot anything obvious. Unfortunately could not patch it locally because of the git outage (https://crbug.com/912711).

$$() being undefined most likely means that your element is not a Polymer element during the test (has not been upgraded to a Custom Element, Polymer({....}) has not executed yet), which I have no explanation for so far.

--
You received this message because you are subscribed to the Google Groups "Chromium-Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-polym...@chromium.org.
To post to this group, send email to chromium...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-polymer/8552ca76-9245-4749-888d-720f561dee5f%40chromium.org.

odej...@chromium.org

unread,
Dec 6, 2018, 5:45:49 PM12/6/18
to Chromium-Polymer, odej...@chromium.org
Thanks for taking a look Demetrios. Yesterday, my local release build was failing the test when I had used () => {} for the functions in the test() instead of function() {}. Once I changed that, my local release build started working. I'm not sure if that helps in diagnosing the problem.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-polymer+unsubscribe@chromium.org.

odej...@chromium.org

unread,
Dec 7, 2018, 2:34:56 PM12/7/18
to Chromium-Polymer, odej...@chromium.org
Today I am getting the following:

odejesush@odejesush-chrome:~/chromium/src$ out/Default/browser_tests --gtest_filter=CrSettingsChooserExceptionListEntryTest.*                                                                                                                                                                                                                                                                                                                                                                 
IMPORTANT DEBUGGING NOTE: each test is run inside its own process.                                                                                                                                                                                                                                                                                                                                                                                                                            
For debugging a test inside a debugger, use the                                                                                                                                                                                                                                                                                                                                                                                                                                               
--gtest_filter=<your_test_name> flag along with either                                                                                                                                                                                                                                                                                                                                                                                                                                        
--single_process (to run the test in one launcher/browser process) or                                                                                                                                                                                                                                                                                                                                                                                                                         
--single-process (to do the above, and also run Chrome in single-process mode).                                                                                                                                                                                                                                                                                                                                                                                                               
Using sharding settings from environment. This is shard 0/1                                                                                                                                                                                                                                                                                                                                                                                                                                   
Using 1 parallel jobs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
Note: Google Test filter = CrSettingsChooserExceptionListEntryTest.All                                                                                                                                                                                                                                                                                                                                                                                                                        
[==========] Running 1 test from 1 test case.                                                                                                                                                                                                                                                                                                                                                                                                                                                 
[----------] Global test environment set-up.                                                                                                                                                                                                                                                                                                                                                                                                                                                  
[----------] 1 test from CrSettingsChooserExceptionListEntryTest, where TypeParam =                                                                                                                                                                                                                                                                                                                                                                                                           
[ RUN      ] CrSettingsChooserExceptionListEntryTest.All                                                                                                                                                                                                                                                                                                                                                                                                                                      
[1656:1656:1207/113044.744355:WARNING:password_store_factory.cc(261)] Using basic (unencrypted) store for password storage. See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_password_storage.md for more information about password storage options.                                                                                                                                                                                                                   
[1656:1782:1207/113044.845589:ERROR:bus.cc(396)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
(browser_tests:1656): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Unknown or unsupported transport “disabled” for address “disabled:”                                                                                                                                                                                                                                                                                                                                             
[1656:1656:1207/113045.457870:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11                                                                                                                                                                                                                                                                                                                                                                           
[1656:1656:1207/113046.149025:WARNING:CONSOLE(0)] "HTML Imports is deprecated and will be removed in M73, around March 2019. Please use ES modules instead. See https://www.chromestatus.com/features/5144752345317376 for more details.", source:  (0)                                                                                                                                                                                                                                       
[1656:1656:1207/113046.360004:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11                                                                                                                                                                                                                                                                                                                                                                           
[1656:1656:1207/113049.022510:WARNING:gaia_auth_fetcher.cc(891)] Could not reach Google Accounts servers: errno -11                                                                                                                                                                                                                                                                                                                                                                           
[1:1:1207/113051.525130:FATAL:event_handler_registry.cc(403)] Check failed: node->GetDocument().GetPage().                                                                                                                                                                                                                                                                                                                                                                                    
#0 0x7feb13157d9d base::debug::StackTrace::StackTrace()                                                                                                                                                                                                                                                                                                                                                                                                                                       
#1 0x7feb12e47d3a base::debug::StackTrace::StackTrace()                                                                                                                                                                                                                                                                                                                                                                                                                                       
#2 0x7feb12eb9a4b logging::LogMessage::~LogMessage()                                                                                                                                                                                                                                                                                                                                                                                                                                          
#3 0x7feaf1cc8308 blink::EventHandlerRegistry::CheckConsistency()                                                                                                                                                                                                                                                                                                                                                                                                                             
#4 0x7feaf1cc891f blink::EventHandlerRegistry::HasEventHandlers()                                                                                                                                                                                                                                                                                                                                                                                                                             
#5 0x7feaf1cc912a blink::EventHandlerRegistry::NotifyHasHandlersChanged()                                                                                                                                                                                                                                                                                                                                                                                                                     
#6 0x7feaf1cc991e blink::EventHandlerRegistry::DidRemoveAllEventHandlers()                                                                                                                                                                                                                                                                                                                                                                                                                    
#7 0x7feaf1cc97dd blink::EventHandlerRegistry::DidMoveOutOfPage()                                                                                                                                                                                                                                                                                                                                                                                                                             
#8 0x7feaf192fcbc blink::Node::WillMoveToNewDocument()                                                                                                                                                                                                                                                                                                                                                                                                                                        
#9 0x7feaf19a9d90 blink::TreeScopeAdopter::MoveNodeToNewDocument()                                                                                                                                                                                                                                                                                                                                                                                                                            
#10 0x7feaf19a9778 blink::TreeScopeAdopter::MoveTreeToNewDocument()                                                                                                                                                                                                                                                                                                                                                                                                                           
#11 0x7feaf19a95d6 blink::TreeScopeAdopter::MoveShadowTreeToNewDocument()                                                                                                                                                                                                                                                                                                                                                                                                                     
#12 0x7feaf19a942c blink::TreeScopeAdopter::MoveTreeToNewScope()                                                                                                                                                                                                                                                                                                                                                                                                                              
#13 0x7feaf19a901b blink::TreeScopeAdopter::Execute()                                                                                                                                                                                                                                                                                                                                                                                                                                         
#14 0x7feaf19a4b84 blink::TreeScope::AdoptIfNeeded()                                                                                                                                                                                                                                                                                                                                                                                                                                          
#15 0x7feaf180e20b blink::ContainerNode::AdoptAndInsertBefore::operator()()                                                                                                                                                                                                                                                                                                                                                                                                                   
#16 0x7feaf180d9d9 blink::ContainerNode::InsertNodeVector<>()                                                                                                                                                                                                                                                                                                                                                                                                                                 
#17 0x7feaf1807459 blink::ContainerNode::InsertBefore()                                                                                                                                                                                                                                                                                                                                                                                                                                       
#18 0x7feaf19266c2 blink::Node::insertBefore()                                                                                                                                                                                                                                                                                                                                                                                                                                                
#19 0x7feaf2c2f6a1 blink::node_v8_internal::InsertBeforeMethodForMainWorld()                                                                                                                                                                                                                                                                                                                                                                                                                  
#20 0x7feaf2c2ef8a blink::V8Node::InsertBeforeMethodCallbackForMainWorld()
#21 0x7feb0eb62521 v8::internal::FunctionCallbackArguments::Call()
#22 0x7feb0eb60a32 v8::internal::(anonymous namespace)::HandleApiCallHelper<>()
#23 0x7feb0eb5ec94 v8::internal::Builtin_Impl_HandleApiCall()
#24 0x7feb0eb5e7b8 v8::internal::Builtin_HandleApiCall()
#25 0x7feb0f9f0f72 <unknown>

Received signal 6
#0 0x7feb13157d9d base::debug::StackTrace::StackTrace()
#1 0x7feb12e47d3a base::debug::StackTrace::StackTrace()
#2 0x7feb131577ea base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x7feae6fe00c0 <unknown>
#4 0x7feae26f3fcf gsignal
#5 0x7feae26f53fa abort
#6 0x7feb13156f96 base::debug::(anonymous namespace)::DebugBreak()
#7 0x7feb13156f78 base::debug::BreakDebugger()
#8 0x7feb12eba861 logging::LogMessage::~LogMessage()
#9 0x7feaf1cc8308 blink::EventHandlerRegistry::CheckConsistency()
#10 0x7feaf1cc891f blink::EventHandlerRegistry::HasEventHandlers()
#11 0x7feaf1cc912a blink::EventHandlerRegistry::NotifyHasHandlersChanged()
#12 0x7feaf1cc991e blink::EventHandlerRegistry::DidRemoveAllEventHandlers()
#13 0x7feaf1cc97dd blink::EventHandlerRegistry::DidMoveOutOfPage()
#14 0x7feaf192fcbc blink::Node::WillMoveToNewDocument()
#15 0x7feaf19a9d90 blink::TreeScopeAdopter::MoveNodeToNewDocument()
#16 0x7feaf19a9778 blink::TreeScopeAdopter::MoveTreeToNewDocument()
#17 0x7feaf19a95d6 blink::TreeScopeAdopter::MoveShadowTreeToNewDocument()
#18 0x7feaf19a942c blink::TreeScopeAdopter::MoveTreeToNewScope()
#19 0x7feaf19a901b blink::TreeScopeAdopter::Execute()
#20 0x7feaf19a4b84 blink::TreeScope::AdoptIfNeeded()
#21 0x7feaf180e20b blink::ContainerNode::AdoptAndInsertBefore::operator()()
#22 0x7feaf180d9d9 blink::ContainerNode::InsertNodeVector<>()
#23 0x7feaf1807459 blink::ContainerNode::InsertBefore()
#24 0x7feaf19266c2 blink::Node::insertBefore()
#25 0x7feaf2c2f6a1 blink::node_v8_internal::InsertBeforeMethodForMainWorld()
#26 0x7feaf2c2ef8a blink::V8Node::InsertBeforeMethodCallbackForMainWorld()
#27 0x7feb0eb62521 v8::internal::FunctionCallbackArguments::Call()
#28 0x7feb0eb60a32 v8::internal::(anonymous namespace)::HandleApiCallHelper<>()
#29 0x7feb0eb5ec94 v8::internal::Builtin_Impl_HandleApiCall()
#30 0x7feb0eb5e7b8 v8::internal::Builtin_HandleApiCall()
#31 0x7feb0f9f0f72 <unknown>
  r8: 0000000000000000  r9: 00007ffd658330d0 r10: 0000000000000008 r11: 0000000000000246
 r12: 00007ffd65836a78 r13: 00007ffd658369f0 r14: 00007feaf2c2ef70 r15: 000022ace789c020
  di: 0000000000000002  si: 00007ffd658330d0  bp: 00007ffd65833310  bx: 0000000000000006
  dx: 0000000000000000  ax: 0000000000000000  cx: 00007feae26f3fcf  sp: 00007ffd65833148
  ip: 00007feae26f3fcf efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]

I ran the test with --gtest_filter=CrSettingsSiteListTest.* to see if the other tests were also affected, but this test ran successfully. I have not changed my test since yesterday, the only thing that I did today was do a git rebase-update and gclient sync.

Demetrios Papadopoulos

unread,
Dec 7, 2018, 3:26:39 PM12/7/18
to Chromium-Polymer, odej...@chromium.org
Here is a theory of why the tests are failing.

1) You are adding a new Custom Element, but you are not adding any dependency to that element anywhere in chrome://settings.
2) When the tests run in release mode, they can only access what has been bundled into chrome://settings. Therefore your element does not exist in the bundle, and the tests fail.

To verify that theory, try either running locally tests with GN configured as optimize_webui=false (they should pass). Or add a dependency to your element somewhere in settings, and run with optimize_webui=true (they should pass).


On Thursday, December 6, 2018 at 1:30:04 PM UTC-8, odej...@chromium.org wrote:

odej...@chromium.org

unread,
Dec 10, 2018, 1:35:52 PM12/10/18
to Chromium-Polymer, odej...@chromium.org
Adding the new element as a dependency to chrome://settings allowed the bots to pass (and for the tests to pass locally when optimize_webui=true).

Thank you very much for your help Demetrios!

On Thursday, December 6, 2018 at 1:30:04 PM UTC-8, odej...@chromium.org wrote:
Reply all
Reply to author
Forward
0 new messages