Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 73... Línea 73...
73
                    var items = document.querySelector('.sortablelist');
73
                    var items = document.querySelector('.sortablelist');
74
                    items.insertBefore(droptarget, items.children[$testingpos]);
74
                    items.insertBefore(droptarget, items.children[$testingpos]);
75
                }())"
75
                }())"
76
        );
76
        );
Línea -... Línea 77...
-
 
77
 
-
 
78
        // Ensure the script has run and the item is there.
-
 
79
        $generalcontext->wait_until_exists(
-
 
80
            '.dtb',
-
 
81
            'css_element'
-
 
82
        );
77
 
83
 
78
        $generalcontext->i_drag_and_i_drop_it_in(
84
        $generalcontext->i_drag_and_i_drop_it_in(
79
            $this->item_xpath_by_label($label),
85
            $this->item_xpath_by_label($label),
80
            'xpath_element',
86
            'xpath_element',
81
            "//li[contains(concat(' ', normalize-space(@class), ' '), 'dtb')]",
87
            "//li[contains(concat(' ', normalize-space(@class), ' '), 'dtb')]",
Línea 86... Línea 92...
86
                (function() {
92
                (function() {
87
                    var item = document.querySelector('.dtb');
93
                    var item = document.querySelector('.dtb');
88
                    item.parentNode.removeChild(item);
94
                    item.parentNode.removeChild(item);
89
                }())"
95
                }())"
90
        );
96
        );
-
 
97
 
-
 
98
        // Ensure the script has run and the item is gone.
-
 
99
        $generalcontext->wait_until_does_not_exists(
-
 
100
            '.dtb',
-
 
101
            'css_element'
-
 
102
        );
91
    }
103
    }
92
}
104
}