Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: test/compiled/Filter.cpp

Issue 29595633: Issue 5870 - Implement the new ElemHideEmulation filter type (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Review comments Created Jan. 30, 2018, 10:52 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « meson.build ('k') | test/elemHideEmulation.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
hub 2018/01/30 23:12:01 I have an update with the license header I forgot.
2
3 #include "gtest/gtest.h"
4 #include "compiled/String.h"
5 #include "compiled/filter/Filter.h"
6
7 TEST(TestFilter, testFromText)
8 {
9 OwnedString t(u"www.example.com#@#:-abp-properties(foo)"_str);
10 DependentString text(t);
11
12 FilterPtr filter(Filter::FromText(text));
13 EXPECT_EQ(filter->GetText(), u"www.example.com#@#:-abp-properties(foo)"_str);
14 }
hub 2018/01/30 23:12:01 and more comprehensive tests for this part. This w
OLDNEW
« no previous file with comments | « meson.build ('k') | test/elemHideEmulation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld