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

9
LINES

< > BotCompany Repo | #1030277 // test_findHTMLTagWithClassDeep (OK)

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

Libraryless. Click here for Pure Java version (4831L/32K).

1  
svoid test_findHTMLTagWithClassDeep() {
2  
  S html = [[<div class="blu bla blo"><p class="bla"></p><p /></div><div class="what blablu"></div>]];
3  
  assertEqualsVerbose(
4  
    ll(
5  
      [[<div class="blu bla blo"><p class="bla"></p><p /></div>]],
6  
      [[<p class="bla"></p>]]
7  
    ),
8  
    lmap join(findHTMLTagWithClassDeep("bla", htmlTok(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: #1030277
Snippet name: test_findHTMLTagWithClassDeep (OK)
Eternal ID of this version: #1030277/3
Text MD5: 39b1e982626cf67f6558a4fb481066d2
Transpilation MD5: 9bc57f01c6935bd4211f654e87a832f5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-25 14:24:03
Source code size: 351 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 102 / 154
Version history: 2 change(s)
Referenced in: [show references]