Fix Safari gr-app_test

Change-Id: I73e3beb3fd971a60504ea80acb1149279533faac
This commit is contained in:
Viktar Donich
2016-08-23 16:07:38 -07:00
parent 04f3be812e
commit 1bfddc637d
3 changed files with 6 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ limitations under the License.
-->
<link rel="import" href="../../../bower_components/polymer/polymer.html">
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
<link rel="import" href="../../core/gr-reporting/gr-reporting.html">
<script src="../../../bower_components/page/page.js"></script>
<script src="gr-router.js"></script>

View File

@@ -21,6 +21,10 @@
var reporting = document.createElement('gr-reporting');
window.addEventListener('WebComponentsReady', function() {
if (!app) {
console.log('No gr-app found (runing in test mode)');
return;
}
reporting.timeEnd('WebComponentsReady');
reporting.pageLoaded();

View File

@@ -25,7 +25,7 @@ limitations under the License.
<test-fixture id="basic">
<template>
<gr-app></gr-app>
<gr-app id="app"></gr-app>
</template>
</test-fixture>