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

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

Issue 2826573002: DevTools: fix tests to ensure clean revert of persistence2.0 (Closed)
Patch Set: Created 3 years, 8 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 scriptFiles[i].checkMapping(); 1246 scriptFiles[i].checkMapping();
1247 1247
1248 this._updateLinesWithoutMappingHighlight(); 1248 this._updateLinesWithoutMappingHighlight();
1249 this._detectMinified(); 1249 this._detectMinified();
1250 } 1250 }
1251 1251
1252 _detectMinified() { 1252 _detectMinified() {
1253 if (this._prettyPrintInfobar) 1253 if (this._prettyPrintInfobar)
1254 return; 1254 return;
1255 1255
1256 if (!TextUtils.isMinified(/** @type {string} */ (this._debuggerSourceCode.co ntent()))) 1256 if (!TextUtils.isMinified(/** @type {string} */ (this.uiSourceCode().content ())))
dgozman 2017/04/17 22:36:02 How could this make a difference though?
lushnikov 2017/04/17 23:06:13 this.uiSourceCode() is the one which was requested
1257 return; 1257 return;
1258 1258
1259 this._prettyPrintInfobar = UI.Infobar.create( 1259 this._prettyPrintInfobar = UI.Infobar.create(
1260 UI.Infobar.Type.Info, Common.UIString('Pretty-print this minified file?' ), 1260 UI.Infobar.Type.Info, Common.UIString('Pretty-print this minified file?' ),
1261 Common.settings.createSetting('prettyPrintInfobarDisabled', false)); 1261 Common.settings.createSetting('prettyPrintInfobarDisabled', false));
1262 if (!this._prettyPrintInfobar) 1262 if (!this._prettyPrintInfobar)
1263 return; 1263 return;
1264 1264
1265 this._prettyPrintInfobar.setCloseCallback(() => delete this._prettyPrintInfo bar); 1265 this._prettyPrintInfobar.setCloseCallback(() => delete this._prettyPrintInfo bar);
1266 var toolbar = new UI.Toolbar(''); 1266 var toolbar = new UI.Toolbar('');
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 return; 1488 return;
1489 this.bookmark.clear(); 1489 this.bookmark.clear();
1490 this.bookmark = null; 1490 this.bookmark = null;
1491 } 1491 }
1492 }; 1492 };
1493 1493
1494 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark'); 1494 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark');
1495 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element'); 1495 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element');
1496 1496
1497 Sources.JavaScriptSourceFrame.continueToLocationDecorationSymbol = Symbol('bookm ark'); 1497 Sources.JavaScriptSourceFrame.continueToLocationDecorationSymbol = Symbol('bookm ark');
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-do-not-bind-dirty-sourcecode.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698