Index: third_party/WebKit/LayoutTests/external/wpt/html/browsers/history/the-location-interface/location-stringifier.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/browsers/history/the-location-interface/location-stringifier.html b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/history/the-location-interface/location-stringifier.html |
index d23323b3731fbc408f378b9af114dff81bfa67e2..bde54b26662c46237ce2e5376f9a88e0f55e0991 100644 |
--- a/third_party/WebKit/LayoutTests/external/wpt/html/browsers/history/the-location-interface/location-stringifier.html |
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/history/the-location-interface/location-stringifier.html |
@@ -8,4 +8,17 @@ |
<div id=log></div> |
<script> |
test_stringifier_attribute(location, "href", true); |
+ |
+test(function() { |
+ const prop1 = Object.getOwnPropertyDescriptor(location, "toString"), |
+ prop2 = Object.getOwnPropertyDescriptor(location, "href") |
+ |
+ assert_true(prop1.enumerable) |
+ assert_false(prop1.writable) |
+ assert_false(prop1.configurable) |
+ |
+ assert_true(prop2.enumerable) |
+ assert_false(prop2.configurable) |
+ assert_equals(typeof prop2.get, "function") |
+}) |
</script> |