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

Unified Diff: LayoutTests/http/tests/push_messaging/subscribe_success.html

Issue 821303006: bindings: Fixes layouttests when moving attributes to prototype chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed performance memory tests and addressed review comments. Created 5 years, 11 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
Index: LayoutTests/http/tests/push_messaging/subscribe_success.html
diff --git a/LayoutTests/http/tests/push_messaging/subscribe_success.html b/LayoutTests/http/tests/push_messaging/subscribe_success.html
index 196e6c4803369a3ba095fc47d46425643954b945..08eb626a85400f3d856942cfe21114844493906e 100644
--- a/LayoutTests/http/tests/push_messaging/subscribe_success.html
+++ b/LayoutTests/http/tests/push_messaging/subscribe_success.html
@@ -5,6 +5,7 @@
<link rel="manifest" href="resources/push_manifest.json">
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
+<script src="../resources/testharness-helpers.js"></script>
<script src="../serviceworker/resources/test-helpers.js"></script>
</head>
<body>
@@ -25,10 +26,10 @@ async_test(function(test) {
return swRegistration.pushManager.subscribe();
})
.then(function(pushSubscription) {
- assert_own_property(pushSubscription, 'subscriptionId');
+ assert_will_be_idl_attribute(pushSubscription, 'subscriptionId');
assert_equals(typeof pushSubscription.subscriptionId, 'string');
- assert_own_property(pushSubscription, 'endpoint');
+ assert_will_be_idl_attribute(pushSubscription, 'endpoint');
assert_equals(typeof pushSubscription.endpoint, 'string');
try {
var endpointUrl = new URL(pushSubscription.endpoint);

Powered by Google App Engine
This is Rietveld 408576698