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

Issue 29328600: Issue 3122 - Add sitekey frame files ready for sitekey testcases (Closed)

Created:
Sept. 24, 2015, 4:56 p.m. by kzar
Modified:
Oct. 16, 2015, 3:52 p.m.
Reviewers:
rossg, saroyanm
CC:
Philip Hill
Visibility:
Public.

Description

Issue 3122 - Add sitekey frame files ready for sitekey testcases (Depends on https://codereview.adblockplus.org/29325987/ and https://codereview.adblockplus.org/29328589/ )

Patch Set 1 #

Patch Set 2 : Deleted some erroneous whitespace #

Patch Set 3 : Set data-adblockkey attribute of html element #

Total comments: 2

Patch Set 4 : Attempt to make frame URL logic clearer #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -23 lines) Patch
M pages/testcases/generic/index.html View 1 2 3 1 chunk +6 lines, -23 lines 0 comments Download
M static/abp-test-suite-filters.txt View 1 chunk +3 lines, -0 lines 0 comments Download
A static/site.key View 1 chunk +9 lines, -0 lines 0 comments Download
A templates/frame.tmpl View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A templates/sitekey_frame.tmpl View 1 2 3 1 chunk +10 lines, -0 lines 6 comments Download

Messages

Total messages: 12
kzar
Patch Set 1 Patch Set 2 : Deleted some erroneous whitespace
Sept. 24, 2015, 5 p.m. (2015-09-24 17:00:19 UTC) #1
kzar
Patch Set 3 : Set data-adblockkey attribute of html element
Oct. 8, 2015, 12:33 p.m. (2015-10-08 12:33:35 UTC) #2
rossg
On 2015/10/08 12:33:35, kzar wrote: > Patch Set 3 : Set data-adblockkey attribute of html ...
Oct. 12, 2015, 12:51 p.m. (2015-10-12 12:51:33 UTC) #3
saroyanm
Noticed the repository bit messy, I'll do a high level review while I'm not really ...
Oct. 13, 2015, 9:55 a.m. (2015-10-13 09:55:18 UTC) #4
kzar
Yes exactly, this repository is a little messy so far but I thought it would ...
Oct. 13, 2015, 11:35 a.m. (2015-10-13 11:35:36 UTC) #5
saroyanm
https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl File templates/sitekey_frame.tmpl (right): https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl#newcode1 templates/sitekey_frame.tmpl:1: {% extends "frame.tmpl" %} "TemplateNotFound: frame.tmpl" maybe -> {% ...
Oct. 13, 2015, 12:24 p.m. (2015-10-13 12:24:44 UTC) #6
kzar
https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl File templates/sitekey_frame.tmpl (right): https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl#newcode1 templates/sitekey_frame.tmpl:1: {% extends "frame.tmpl" %} On 2015/10/13 12:24:44, saroyanm wrote: ...
Oct. 15, 2015, 3:06 p.m. (2015-10-15 15:06:21 UTC) #7
saroyanm
https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl File templates/sitekey_frame.tmpl (right): https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl#newcode1 templates/sitekey_frame.tmpl:1: {% extends "frame.tmpl" %} On 2015/10/15 15:06:21, kzar wrote: ...
Oct. 15, 2015, 3:38 p.m. (2015-10-15 15:38:16 UTC) #8
kzar
https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl File templates/sitekey_frame.tmpl (right): https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl#newcode1 templates/sitekey_frame.tmpl:1: {% extends "frame.tmpl" %} On 2015/10/15 15:38:16, saroyanm wrote: ...
Oct. 15, 2015, 4:19 p.m. (2015-10-15 16:19:13 UTC) #9
saroyanm
https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl File templates/sitekey_frame.tmpl (right): https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl#newcode1 templates/sitekey_frame.tmpl:1: {% extends "frame.tmpl" %} On 2015/10/15 16:19:12, kzar wrote: ...
Oct. 15, 2015, 4:23 p.m. (2015-10-15 16:23:24 UTC) #10
kzar
https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl File templates/sitekey_frame.tmpl (right): https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_frame.tmpl#newcode1 templates/sitekey_frame.tmpl:1: {% extends "frame.tmpl" %} On 2015/10/15 16:23:23, saroyanm wrote: ...
Oct. 15, 2015, 4:28 p.m. (2015-10-15 16:28:52 UTC) #11
saroyanm
Oct. 15, 2015, 4:46 p.m. (2015-10-15 16:46:38 UTC) #12
On 2015/10/15 16:28:52, kzar wrote:
>
https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_f...
> File templates/sitekey_frame.tmpl (right):
> 
>
https://codereview.adblockplus.org/29328600/diff/29329086/templates/sitekey_f...
> templates/sitekey_frame.tmpl:1: {% extends "frame.tmpl" %}
> On 2015/10/15 16:23:23, saroyanm wrote:
> > On 2015/10/15 16:19:12, kzar wrote:
> > > On 2015/10/15 15:38:16, saroyanm wrote:
> > > > On 2015/10/15 15:06:21, kzar wrote:
> > > > > On 2015/10/13 12:24:44, saroyanm wrote:
> > > > > > "TemplateNotFound: frame.tmpl"
> > > > > > maybe -> {% extends "templates/frame" %} ?
> > > > > 
> > > > > I'm not able to reproduce that problem, when exactly do you hit it?
> (This
> > > > > template sitekey_frame.tmpl is designed to be rendered by the related
> URL
> > > > > handler in the sitescripts repository.)
> > > > 
> > > > Assigne this template to some page `template=sitekey_frame`
> > > > Ex.: change template of `pages/testcases/generic/01.md` from "testcase"
to
> > > > "sitekey_frame"
> > > 
> > > Ah right I see, well it's designed to be rendered by sitescripts and not
> used
> > as
> > > a CMS page template. I wouldn't expect that to work.
> > 
> > But if you use -> {% extends "templates/frame" %} looks to work fine.
> 
> So this template is designed to be rendered by
> sitescripts.testpages.web.sitekey_frame . If I omit the ".tmpl" extension that
> URL handler can no longer render the template - it breaks. This template is
not
> designed to be used by CMS pages, it does not matter if it does not work for
> them.

Ahh got it! LGTM

Powered by Google App Engine
This is Rietveld