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

Unified Diff: third_party/WebKit/Source/devtools/front_end/Tests.js

Issue 2556803003: Allow temporary file system for incognito DevTools. (Closed)
Patch Set: Created 4 years 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
Index: third_party/WebKit/Source/devtools/front_end/Tests.js
diff --git a/third_party/WebKit/Source/devtools/front_end/Tests.js b/third_party/WebKit/Source/devtools/front_end/Tests.js
index 8ec346af5fb13b829910bf0dbe8afc0a9bbc8d53..23a75451f7f621aec4b0d255e75cc84421718f67 100644
--- a/third_party/WebKit/Source/devtools/front_end/Tests.js
+++ b/third_party/WebKit/Source/devtools/front_end/Tests.js
@@ -871,6 +871,12 @@
Bindings.TempFile.ensureTempStorageCleared().then(() => this.releaseControl());
};
+ TestSuite.prototype.testTempFile = function() {
+ this.takeControl();
+ Bindings.TempFile.create('test-file', 'test')
+ .then(() => this.releaseControl(), (error) => this.fail(String(error)));
+ };
+
TestSuite.prototype.waitForTestResultsInConsole = function() {
var messages = SDK.multitargetConsoleModel.messages();
for (var i = 0; i < messages.length; ++i) {

Powered by Google App Engine
This is Rietveld 408576698