Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1031456 // test_autoLoadJQuery

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5736L/36K).

1  
svoid test_autoLoadJQuery() {
2  
  S html = hjs("$('bla').bla();");
3  
  assertFalse(jqueryLoaded(html));
4  
  assertTrue(html, neq(autoLoadJQuery(html), html));
5  
  html = hjs("document.bla();");
6  
  assertEqualsVerbose(html, autoLoadJQuery(html));
7  
  html = hbutton("bla", onclick := "$(this).hide();");
8  
  assertTrue(html, neq(autoLoadJQuery(html), html));
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031456
Snippet name: test_autoLoadJQuery
Eternal ID of this version: #1031456/5
Text MD5: 011b628dd35c650efd5f991644fd7aa2
Transpilation MD5: 6e78e1ce092c19d1fd1d6a2aad2f4244
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-22 05:20:00
Source code size: 354 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 110 / 188
Version history: 4 change(s)
Referenced in: [show references]