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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/Runtime.js

Issue 2262743002: DevTools: Run devtools tests in release mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify build process Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 */ 402 */
403 Runtime.setPlatform = function(platform) 403 Runtime.setPlatform = function(platform)
404 { 404 {
405 Runtime._platform = platform; 405 Runtime._platform = platform;
406 } 406 }
407 407
408 Runtime.prototype = { 408 Runtime.prototype = {
409 useTestBase: function() 409 useTestBase: function()
410 { 410 {
411 Runtime._remoteBase = "http://localhost:8000/inspector-sources/"; 411 Runtime._remoteBase = "http://localhost:8000/inspector-sources/";
412 if (Runtime.queryParam("debugFrontend"))
413 Runtime._remoteBase += "debug/";
412 }, 414 },
413 415
414 /** 416 /**
415 * @param {!Runtime.ModuleDescriptor} descriptor 417 * @param {!Runtime.ModuleDescriptor} descriptor
416 */ 418 */
417 _registerModule: function(descriptor) 419 _registerModule: function(descriptor)
418 { 420 {
419 var module = new Runtime.Module(this, descriptor); 421 var module = new Runtime.Module(this, descriptor);
420 this._modules.push(module); 422 this._modules.push(module);
421 this._modulesMap[descriptor["name"]] = module; 423 this._modulesMap[descriptor["name"]] = module;
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 { 1125 {
1124 var sourceURL = self.location.href; 1126 var sourceURL = self.location.href;
1125 if (self.location.search) 1127 if (self.location.search)
1126 sourceURL = sourceURL.replace(self.location.search, ""); 1128 sourceURL = sourceURL.replace(self.location.search, "");
1127 sourceURL = sourceURL.substring(0, sourceURL.lastIndexOf("/") + 1) + path; 1129 sourceURL = sourceURL.substring(0, sourceURL.lastIndexOf("/") + 1) + path;
1128 return "\n/*# sourceURL=" + sourceURL + " */"; 1130 return "\n/*# sourceURL=" + sourceURL + " */";
1129 } 1131 }
1130 1132
1131 /** @type {!Runtime} */ 1133 /** @type {!Runtime} */
1132 var runtime; 1134 var runtime;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698