author danielleleb <>
Tue, 12 Mar 2019 17:38:47 +0000
changeset 521608 f87b1c69a88d995473d2351fa55247774be9c395
parent 412434 e155fa765af299f0e8cfb42e0a1709e5b04928b9
child 528458 ba6f655fd68963530c866d0d4a48c3db3d307777
permissions -rw-r--r--
Bug 1532934 - Enable ESLint for dom/url (automatic changes). r=Standard8,baku Differential Revision:

  <meta charset="utf-8">
  <title>Test for Bug 1032511</title>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<a target="_blank" href="">Mozilla Bug 1032511</a>
<p id="display"></p>
<div id="content" style="display: none">
  <iframe name="x" id="x"></iframe>
  <iframe name="y" id="y"></iframe>
<pre id="test">
<a href="" id="anchor">foobar</a>
<area href="" id="area">foobar</area>
<script type="application/javascript">

  /** Test for Bug 1032511 **/
  var a = new URLSearchParams("%e2");
  ok(a, "a exists");
  is(a.toString(), "%EF%BF%BD=", "The value should be here.");

  a = new URLSearchParams("a%e2");
  is(a.toString(), "a%EF%BF%BD=", "The value should be here.");

  a = new URLSearchParams("a%e2b");
  is(a.toString(), "a%EF%BF%BDb=", "The value should be here.");