hunk.code_window:     def test_convert_answer_to_comment_crash(self):
           Post = self.env['forum.post']
           # converting a question does nothing
           msg_ids = self.post.sudo(self.user_portal).convert_answer_to_comment()
           self.assertEqual(msg_ids[0], False, 'website_forum: question to comment conversion failed')
           self.assertEqual(Post.search([('name', '=', 'TestQuestion')])[0].forum_id.name, 'TestForum', 'website_forum: question to comment conversion failed')
           with self.assertRaises(KarmaError):
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep
hunk.after_edit:         new_msg = self.post.sudo(self.user_portal).convert_answer_to_comment()
           self.assertEqual(new_msg.id, False, 'website_forum: question to comment conversion failed')
  
hunk.file_path: addons/website_forum/tests/test_forum.py
hunk.type: replace
file: odoo.define('web.config', function (require) {
  "use strict";
  
  var bus = require('web.core').bus;
  
  var medias = [
      window.matchMedia('(max-width: 767px)'),
      window.matchMedia('(min-width: 768px) and (max-width: 991px)'),
      window.matchMedia('(min-width: 992px) and (max-width: 1199px)'),
      window.matchMedia('(min-width: 1200px)')
  ];
  _.each(medias, function(m) {
      m.addListener(set_size_class);
  });
  
  var config = {
      debug: ($.deparam($.param.querystring()).debug !== undefined),
      device: {
          touch: 'ontouchstart' in window || 'onmsgesturechange' in window,
          size_class: size_class(),
          SIZES: { XS: 0, SM: 1, MD: 2, LG: 3 },
      },
  };
  
  function size_class() {
      for(var i = 0 ; i < medias.length ; i++) {
          if(medias[i].matches) {
              return i;
          }
      }
  }
  function set_size_class() {
      var sc = size_class();
      if (sc !== config.device.size_class) {
          config.device.size_class = sc;
          bus.trigger('size_class', sc);
      }
  }
  
  return config;
  
  });
  