<commit_before><html>
  <head>
    <script type="text/javascript"
            src="chrome_frame_tester_helpers.js"></script>
    <script type="text/javascript"
            src="CFInstall.js"></script>
  </head>
  <body>
    <div id="statusPanel" style="border: 1px solid red; width: 100%">
      Test running....
    </div>

    <script type="text/javascript">
      var testName = 'CFInstallOverlay';
      (function(){
        try{
          // Testing over-rides for GCF detection code.
          CFInstall._force = true;
          CFInstall._forceValue = false;

          // Clobber prompt supression cookie if set.
          document.cookie = 'disableGCFCheck=0;path=/';

          CFInstall.check({
            id: 'prompt',
            mode: 'overlay'
          });

          var p = byId('prompt');

          if (!p) {
            onFailure(testName, 1, 'prompt not created with correct ID');
            return;
          }

          // Make sure the prompt is parented in the display table.
          if (p.parentNode != byId('chromeFrameIframeHolder')) {
            onFailure(testName, 1, 'prompt not parented correctly');
            return;
          }

          var lc = document.body.lastChild;

          if (lc.nodeType != 1 || !lc.firstChild &&
              lc.firstChild != byId('chromeFrameOverlayUnderlay')) {
            onFailure(testName, 1, 'underlay placed incorrectly');
            return;
          }

          if (lc.nodeType != 1 || !lc.firstChild &&
              lc.firstChild.nextSibling != byId('chromeFrameOverlayContent')) {
            onFailure(testName, 1, 'prompt placed incorrectly');
            return;
          }

          onSuccess(testName, 1);

        } catch (e) {
          onFailure(testName, 1,
                    'CFInstall overlay prompt failed with error: '+e);
        }
      })();
    </script>
    <p>Tests CFInstall overlay prompt</p>
  </body>
</html>
<commit_msg>Updates test to use new document location for overlay nodes.<commit_after><html>
  <head>
    <script type="text/javascript"
            src="chrome_frame_tester_helpers.js"></script>
    <script type="text/javascript"
            src="CFInstall.js"></script>
  </head>
  <body>
    <div id="statusPanel" style="border: 1px solid red; width: 100%">
      Test running....
    </div>

    <script type="text/javascript">
      var testName = 'CFInstallOverlay';
      (function(){
        try{
          // Testing over-rides for GCF detection code.
          CFInstall._force = true;
          CFInstall._forceValue = false;

          // Clobber prompt supression cookie if set.
          document.cookie = 'disableGCFCheck=0;path=/';

          CFInstall.check({
            id: 'prompt',
            mode: 'overlay'
          });

          var p = byId('prompt');

          if (!p) {
            onFailure(testName, 1, 'prompt not created with correct ID');
            return;
          }

          // Make sure the prompt is parented in the display table.
          if (p.parentNode != byId('chromeFrameIframeHolder')) {
            onFailure(testName, 1, 'prompt not parented correctly');
            return;
          }

          var fc = document.body.firstChild;

          if (fc.nodeType != 1 || !fc.firstChild &&
              fc.firstChild != byId('chromeFrameOverlayUnderlay')) {
            onFailure(testName, 1, 'underlay placed incorrectly');
            return;
          }

          if (fc.nodeType != 1 || !fc.firstChild &&
              fc.nextSibling != byId('chromeFrameOverlayContent')) {
            onFailure(testName, 1, 'prompt placed incorrectly');
            return;
          }

          onSuccess(testName, 1);

        } catch (e) {
          onFailure(testName, 1,
                    'CFInstall overlay prompt failed with error: '+e);
        }
      })();
    </script>
    <p>Tests CFInstall overlay prompt</p>
  </body>
</html>

{'fraction_non_alphanumeric': 0.1257990283814881, 'fraction_numerical': 0.006647916133981079, 'mean_word_length': 1.8063127690100431, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7141022', 'n_tokens_mistral': 1139, 'n_tokens_neox': 1077, 'n_words': 273}