<commit_before><!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="test.css">
  <title>Zepto Touch unit tests</title>
  <script src="../vendor/evidence.js"></script>
  <script src="evidence_runner.js"></script>
  <script>
    // avoid caching
    (function(){
      function load(scripts){
        scripts.split(' ').forEach(function(script){
          document.write('<script src="../src/'+script+'.js?'+(+new Date)+'"></scr'+'ipt>')
        })
      }

      load('ie')
    })()
  </script>
  <style>
      body {
          height: 50px;
      }
      body:after {
          content: 'abc';
      }
  </style>
</head>
<body>
  <h1>Zepto IE unit tests</h1>
  <p id="results">
    Running… see browser console for results
  </p>

  <script>
      (function(){

          Evidence('getComputedStyle', {

              //Test to check if styles for elements are returned correctly
              testGetComputedStyle: function(t){
                  t.assertEqual('50px', getComputedStyle(document.body).height);
              },

              //Test to check if styles for pseudo-elements are returned correctly
              testGetComputedStylePseudoElem: function(t){
                  t.assertEqual('abc', getComputedStyle(document.body, ':after').content);
              }

          })
      })()
  </script>

</body>
</html>
<commit_msg>Added test for getComputedStyle when no argument is provided. Fixed test for getComputedStyle with pseudoElement<commit_after><!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="test.css">
  <title>Zepto Touch unit tests</title>
  <script src="../vendor/evidence.js"></script>
  <script src="evidence_runner.js"></script>
  <script>
    // avoid caching
    (function(){
      function load(scripts){
        scripts.split(' ').forEach(function(script){
          document.write('<script src="../src/'+script+'.js?'+(+new Date)+'"></scr'+'ipt>')
        })
      }

      load('ie')
    })()
  </script>
  <style>
      body {
          height: 50px;
      }
      body:after {
          content: 'abc';
      }
  </style>
</head>
<body>
  <h1>Zepto ie unit tests</h1>
  <p id="results">
    Running… see browser console for results
  </p>

  <script>
      (function(){

          Evidence('getComputedStyle', {

              //Test to check if getComputedStyle does not blow up when no element are provided
              testGetComputedStyleNoElem: function(t){
                  t.assertEqual(null, getComputedStyle());
              },

              //Test to check if computed styles for elements are returned correctly
              testGetComputedStyle: function(t){
                  t.assertEqual('50px', getComputedStyle(document.body).height);
              },

              //Test to check if computed styles for pseudo-elements are returned correctly
              //Assertion a bit hacky as IE returns the value in double quotes
              testGetComputedStylePseudoElem: function(t){
                  t.assert(getComputedStyle(document.body, ':after').content.indexOf('abc') >  -1);
              }

          })
      })()
  </script>

</body>
</html>

{'fraction_non_alphanumeric': 0.14986619090098127, 'fraction_numerical': 0.007433838834374071, 'mean_word_length': 2.2883675464320627, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 60, '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': '7167799', 'n_tokens_mistral': 1016, 'n_tokens_neox': 970, 'n_words': 232}