From ddf16b27371e7084792efb3bcede9d60163a3d7e Mon Sep 17 00:00:00 2001 From: "Minh H.G" Date: Sun, 22 Oct 2017 19:44:08 +0800 Subject: [PATCH] [MIG] web_responsive test to 11.0 --- .../static/tests/js/web_responsive.js | 412 ++++++++++-------- web_responsive/tests/__init__.py | 1 + 2 files changed, 227 insertions(+), 186 deletions(-) create mode 100644 web_responsive/tests/__init__.py diff --git a/web_responsive/static/tests/js/web_responsive.js b/web_responsive/static/tests/js/web_responsive.js index 686fce3f..d149b23b 100644 --- a/web_responsive/static/tests/js/web_responsive.js +++ b/web_responsive/static/tests/js/web_responsive.js @@ -1,278 +1,318 @@ /* Copyright 2016 LasLabs Inc. * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ -odoo.define_section('web_responsive', ['web_responsive'], function(test) { +odoo.define('web_responsive.test', function(require) { "use strict"; - - // It provides a base drawer compatible interface for testing - self.initInterface = function(AppDrawer) { - - var $el = $('
'); - $el.append( - $('
') - .append( - $('' + + '' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '' + + '
' ); - self.drawer.$appLinks = $('a.col-md-6'); + + this.$clickZone = $el.find('a.oe_menu_leaf'); + this.$secondaryMenu = $el.find('div.o_sub_menu_content').parent(); + this.$dropdown = $el.find('div.dropdown-scrollable'); + + this.document = $("#qunit-fixture"); + this.document.append($el); + + this.drawer = new responsive.AppDrawer(); + }, + + linkGrid: function() { + for(var i = 0; i < 3; i++){ + this.drawer.$el.append( + $('
').append( + $('