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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/html/browsers/history/the-location-interface/location-stringifier.html

Issue 2695813009: Import wpt@503f5b5f78ec4e87d144f78609f363f0ed0ea8db (Closed)
Patch Set: Skip some tests 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
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>

Powered by Google App Engine
This is Rietveld 408576698