browser/base/content/test/general/browser_bug970746.xhtml
author Andrea <andreaio.it@hotmail.it>
Sat, 16 Aug 2014 17:06:10 -0700
changeset 200014 82722ad59732fd355f6bd77d5194ceaa1dab23c3
parent 176421 b816c8efe28be24a70e8910a09fbb6dde3378eec
permissions -rw-r--r--
Bug 991427 - Check if the last character of the string is part of a surrogate pair when truncating text for display in the context menu, to avoid splitting surrogate pairs, r=gavin

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
  <body>
    <a href="http://mozilla.org" id="link">I'm a link!</a>
    <a href="http://mozilla.org" id="longLink">I'm a really long link and I should be truncated.</a>

    <span id="plainText">
      Right clicking me when I'm selected should show the menu item.
    </span>
    <span id="mixedContent">
      I'm some text, and <a href="http://mozilla.org">I'm a link!</a>
    </span>

    <a href="http://mozilla.org">A partial <span id="partialLink">link selection</span></a>

    <span id="surrogatePair">
      This characteršŸ”„  shouldn't be truncated. 
    </span>
  </body>
</html>