Index: chrome/test/data/extensions/api_test/notifications/api/partial_update/background.js |
diff --git a/chrome/test/data/extensions/api_test/notifications/api/partial_update/background.js b/chrome/test/data/extensions/api_test/notifications/api/partial_update/background.js |
index 756fc26587a33bda324eeede987ea675986ea49e..b42572f75e984893adef037bb396a6a6e6e85881 100644 |
--- a/chrome/test/data/extensions/api_test/notifications/api/partial_update/background.js |
+++ b/chrome/test/data/extensions/api_test/notifications/api/partial_update/background.js |
@@ -124,17 +124,19 @@ function testPartialUpdate() { |
// Create a notification. |
create("testId", basicNotificationOptions) |
- // Then update a few items |
- .then(function () { |
- return update("testId", { |
- title: "Changed!", |
- message: "Too late! The show ended yesterday" |
- }); |
- }) |
- // Then update a few more items |
- .then(function () { return update("testId", {priority:2, buttons: []}); }) |
- // The test will continue in C++, checking that all the updates "took" |
- .then(chrome.test.succeed, chrome.test.fail); |
+ // Then update a few items |
+ .then(function() { |
+ return update("testId", { |
+ title: "Changed!", |
+ message: "Too late! The show ended yesterday" |
+ }); |
+ }) |
+ // Then update a few more items |
+ .then(function() { |
+ return update("testId", {priority: 2, buttons: [{title: "NewButton"}]}); |
+ }) |
+ // The test will continue in C++, checking that all the updates "took" |
+ .then(chrome.test.succeed, chrome.test.fail); |
}; |