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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Location stringifier</title> 2 <title>Location stringifier</title>
3 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"> 3 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
4 <link rel="help" href="https://heycam.github.io/webidl/#es-stringifier"> 4 <link rel="help" href="https://heycam.github.io/webidl/#es-stringifier">
5 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharness.js></script>
6 <script src=/resources/testharnessreport.js></script> 6 <script src=/resources/testharnessreport.js></script>
7 <script src=/common/stringifiers.js></script> 7 <script src=/common/stringifiers.js></script>
8 <div id=log></div> 8 <div id=log></div>
9 <script> 9 <script>
10 test_stringifier_attribute(location, "href", true); 10 test_stringifier_attribute(location, "href", true);
11
12 test(function() {
13 const prop1 = Object.getOwnPropertyDescriptor(location, "toString"),
14 prop2 = Object.getOwnPropertyDescriptor(location, "href")
15
16 assert_true(prop1.enumerable)
17 assert_false(prop1.writable)
18 assert_false(prop1.configurable)
19
20 assert_true(prop2.enumerable)
21 assert_false(prop2.configurable)
22 assert_equals(typeof prop2.get, "function")
23 })
11 </script> 24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698