Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
anoopmb
/
frappe
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
[tests] dont show alert if in test
version-14
Rushabh Mehta
8 anos atrás
pai
6dde90571d
commit
4e95122918
2 arquivos alterados
com
2 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+1
-0
frappe/core/doctype/test_runner/test_runner.js
+1
-0
frappe/public/js/frappe/desk.js
+ 1
- 0
frappe/core/doctype/test_runner/test_runner.js
Ver arquivo
@@ -23,6 +23,7 @@ frappe.ui.form.on('Test Runner', {
},
run_tests: function(frm, files) {
frappe.flags.in_test = true;
let require_list = [
"assets/frappe/js/lib/jquery/qunit.js",
"assets/frappe/js/lib/jquery/qunit.css"
+ 1
- 0
frappe/public/js/frappe/desk.js
Ver arquivo
@@ -483,6 +483,7 @@ frappe.Application = Class.extend({
setup_beforeunload: function() {
window.onbeforeunload = function () {
if (frappe.flags.in_test) return false;
var unsaved_docs = [];
for (doctype in locals) {
for (name in locals[doctype]) {
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar