Web UI: Add assert to ensure cr.m.js does not run twice
Also fixing some tests that fail due to the addition of the assert. cr.js is included by default in the extraLibraries of the PolymerTest base class, so test classes that do not override extraLibraries and import cr.m.js cause the webUIResponse/webUIListenerCallback to be set twice. Bug: 1004967 Change-Id: I7c31cc4df5119556f62e1afe7ebf1b85cb0c6722 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1885230Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#710122}
Showing
Please register or sign in to comment