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

Unified Diff: chrome/test/data/extensions/api_test/action_handlers/new_note/main.js

Issue 2693053002: cros: Add e2e tests for new_note action handler. Flip feature to stable. (Closed)
Patch Set: Address comments Created 3 years, 10 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/test/BUILD.gn ('k') | chrome/test/data/extensions/api_test/action_handlers/new_note/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/action_handlers/new_note/main.js
diff --git a/chrome/test/data/extensions/api_test/action_handlers/new_note/main.js b/chrome/test/data/extensions/api_test/action_handlers/new_note/main.js
new file mode 100644
index 0000000000000000000000000000000000000000..7af0a9095a9ed8362164753aa014ee645ea23452
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/action_handlers/new_note/main.js
@@ -0,0 +1,13 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+chrome.app.runtime.onLaunched.addListener(function(launchData) {
+ var isNewNote = false;
+ if (launchData.actionData && launchData.actionData.actionType == "new_note")
+ isNewNote = true
+
+ chrome.test.sendMessage('hasNewNote = ' + isNewNote);
+});
+
+chrome.test.sendMessage('loaded');
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/data/extensions/api_test/action_handlers/new_note/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698