diff --git a/benchmarks/bootstrap-compile-bp/app.js b/benchmarks/bootstrap-compile-bp/app.js index 1cff7bc18547..7c42c6765f17 100644 --- a/benchmarks/bootstrap-compile-bp/app.js +++ b/benchmarks/bootstrap-compile-bp/app.js @@ -1,3 +1,5 @@ +'use strict'; + var app = angular.module('boostrapCompileBenchmark', []); var commentDirectivesEnabled; @@ -13,7 +15,7 @@ app.config(function($compileProvider) { .commentDirectivesEnabled(commentDirectivesEnabled) .cssClassDirectivesEnabled(cssClassDirectivesEnabled); }) -.controller('DataController', function($compile, $http, $rootScope) { +.controller('DataController', function DataController($compile, $http, $rootScope) { this.isEA = !commentDirectivesEnabled && !cssClassDirectivesEnabled; this.isEAC = !commentDirectivesEnabled && cssClassDirectivesEnabled; @@ -30,7 +32,7 @@ app.config(function($compileProvider) { this.html = null; this.loadTemplate = function() { this.html = null; - $http.get(location.pathname + this.selectedTemplate) + $http.get(window.location.pathname + this.selectedTemplate) .then(function(response) { this.html = response.data; }.bind(this)); }; @@ -57,5 +59,3 @@ app.config(function($compileProvider) { }); }); - - diff --git a/benchmarks/bootstrap-compile-bp/bp.conf.js b/benchmarks/bootstrap-compile-bp/bp.conf.js index bf543bb2cef7..f506db816a97 100644 --- a/benchmarks/bootstrap-compile-bp/bp.conf.js +++ b/benchmarks/bootstrap-compile-bp/bp.conf.js @@ -1,11 +1,15 @@ +/* eslint-env node */ + +'use strict'; + module.exports = function(config) { config.set({ - scripts: [ { + scripts: [{ id: 'angular', src: '/build/angular.js' }, { - src: 'app.js', + src: 'app.js' }] }); };