Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3052)

Unified Diff: chrome/browser/resources/net_internals/test_view.js

Issue 7564029: Use javascript strict mode throughout a number of net-internals files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix one more var Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/net_internals/spdy_view.js ('k') | chrome/browser/resources/net_internals/util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/test_view.js
===================================================================
--- chrome/browser/resources/net_internals/test_view.js (revision 95298)
+++ chrome/browser/resources/net_internals/test_view.js (working copy)
@@ -10,13 +10,14 @@
* - Shows the set of experiments that have been run so far, and their
* result.
*/
+var TestView = (function() {
+ 'use strict';
-var TestView = (function() {
// IDs for special HTML elements in test_view.html
- const MAIN_BOX_ID = 'test-view-tab-content';
- const URL_INPUT_ID = 'test-view-url-input';
- const FORM_ID = 'test-view-connection-tests-form';
- const SUMMARY_DIV_ID = 'test-view-summary';
+ var MAIN_BOX_ID = 'test-view-tab-content';
+ var URL_INPUT_ID = 'test-view-url-input';
+ var FORM_ID = 'test-view-connection-tests-form';
+ var SUMMARY_DIV_ID = 'test-view-summary';
// We inherit from DivView.
var superClass = DivView;
@@ -25,6 +26,8 @@
* @constructor
*/
function TestView() {
+ assertFirstConstructorCall(TestView);
+
// Call superclass's constructor.
superClass.call(this, MAIN_BOX_ID);
« no previous file with comments | « chrome/browser/resources/net_internals/spdy_view.js ('k') | chrome/browser/resources/net_internals/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698