/srv/irclogs.ubuntu.com/2013/12/03/#ubuntu-app-devel.txt

=== chriadam|away is now known as chriadam
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
dholbach0good morning08:13
nerochiarooSoMoN: good morning. did you have time yesterday to look into that test I mentioned ?08:28
oSoMoNnerochiaro, morning! no, but I’m on it now, sorry for the delay08:29
nerochiarooSoMoN: no problem08:29
JamesTaitGood morning all; happy International Day of People with Disability! :-D09:31
=== charles_ is now known as charles
=== chriadam is now known as chriadam|away
t1mpoSoMoN: hello11:28
t1mpoSoMoN: in webbrowser-app, does the address bar currently use a Panel or Toolbar?11:29
oSoMoNt1mp, it uses a Panel11:29
t1mpoSoMoN: ok. And there is no automatic hiding of that toolbar after inactivity, right?11:29
* t1mp is checking that he doesn't break anything with some minor implementation changes to toolbar and panel11:30
oSoMoNt1mp, no11:31
t1mpoSoMoN: ok, thanks. final question: are all webbrowser autopilot tests supposed to pass on maguro?11:32
t1mpI'm running ubuntuuitoolkit tests now, but I'll run webbrowser tests also afterwards.11:33
oSoMoNt1mp, yes, they are11:33
oSoMoNt1mp, check the latest results at http://ci.ubuntu.com/smokeng/trusty/touch/11:34
mzanettinerochiaro: hey. do you know what I need to do in order to make autopilot print the applications debug output?11:34
nerochiaromzanetti: it seems to do that for me without me needing to do anything extra11:35
nerochiaromzanetti: oh, wait, you mean the app output, not the test output11:35
mzanettinerochiaro: yeah11:35
nerochiaromzanetti: then AFAIK you can't. but you can tail -f the logfile that the app generates, let me find the path for you11:36
mzanettinerochiaro: ah right...11:36
nerochiaromzanetti: logs are in ~/.cache/upstart11:36
nerochiaromzanetti: do an ls and you should be able to find your app's log (the names seems different if it's a click app, or legacy, or something else)11:37
t1mpoSoMoN: cool, thanks.11:38
oSoMoNnerochiaro, I’m running the test on the device with phablet-test-run -v, and here is some interesting output I’m getting: http://pastebin.ubuntu.com/6514021/11:40
oSoMoNnerochiaro, clearly, it’s tapping at the wrong position on screen, the center of the only image in my gallery is more like at 230,640 on the screen11:41
oSoMoNnerochiaro, so I would say you’re not selecting the right object11:41
nerochiarooSoMoN: hmm, i kind of copied that code from a gallery tests11:41
nerochiarooSoMoN: does autopilot vis work for you ? that would simplify things a lot if i could poke around the object tree that way11:42
oSoMoNnerochiaro, wild guess: photo = grid.select_many("OrganicItemInteraction")[0] selects the item with the date, not the picture11:42
nerochiarooSoMoN: if you check test_picker_mode.py in the gallery's tests, you have test_pick_first_photo(), which is where i took the code from. am i doing something totally different ?11:45
nerochiarooSoMoN: or subtly different but wrong ?11:45
oSoMoNnerochiaro, I don’t know, I’m not familiar with the gallery-app tests, the code seems to make sense, but from my observations it’s clearly not selecting the right object11:46
oSoMoNnerochiaro, I’d say subtly different but wrong11:46
oSoMoNnerochiaro, if you dump the tree of objects to a file, you should be able to determine which item is the photo, by looking at the global rects11:47
nerochiarooSoMoN: i tried that, dumps way too much stuff. i'll give it another shot and try to find the right item11:52
nerochiarooSoMoN: it's really frustrating though that not even autopilot vis works11:52
oSoMoNyeah11:53
oSoMoNnerochiaro, try grepping on the globalRects, since you know more or less where the photo lives on screen (the dimensions of maguro’s screen are 720×1280)11:54
nerochiarooSoMoN: i'll give that a shot11:54
=== _salem is now known as salem_
nerochiaroom26er: any idea why running apps on the desktop with -testability fails with this error: "Library qttestability load failed!"11:58
om26ernerochiaro, probably due to incompatible versions of python-autopilot and autopilot-qt11:59
nerochiaroom26er: can that be fixed ? it's been around for weeks12:00
om26ernerochiaro, sorry, i got shifted to doing totally different things. I am going to email the autopilot guys, or can you send an email to the autopilot mailing list ?12:01
nerochiaroom26er: i'd appreciate if you could do that, as you know the problem and the tool better than i do12:02
om26ernerochiaro, Ok12:02
nerochiaroom26er: thanks12:07
nerochiarooSoMoN: what was the function to dump the object tree ?12:22
nerochiarooSoMoN: i don't know what's going on in the gallery, but printing the tree confirms that that OrganicItemInteraction is the right children of the grid to click on (it has inside the mousearea that reacts to the click and the overlay that signals the selection)13:57
nerochiarooSoMoN: so either autopilot is reportig the wrong globalRect or the move function is moving the cursor to the wrong place13:58
oSoMoNnerochiaro, I notice that you’re first moving the cursor to the item, then clicking, how about just clicking on the item? not that I expect it will make a difference, but it would make for shorter code anyway14:01
nerochiarooSoMoN: doesn't make any difference indeed14:07
nerochiarooSoMoN: i'm kind of blocked by this to be honest14:08
oSoMoNnerochiaro, how many OrganicItemInteraction does the select_many(…) call returns? and how many images do you have in your library14:09
nerochiarooSoMoN: i have one, and select_many returns one14:12
oSoMoNnerochiaro, and what’s the values of its global rect?14:13
nerochiarooSoMoN: 24,195 216x21614:18
oSoMoNnerochiaro, is this consistent with where the photo appears on screen?14:19
nerochiarooSoMoN: i would say so14:20
oSoMoNnerochiaro, just a random idea: add an image to your library, and print information about all the instances of OrganicItemInteraction returned by select_many(…)14:20
nerochiarooSoMoN: ok14:21
nerochiarooSoMoN: hmm, 24, 195 and 252, 195... that's fishy, i thought 24 was the x14:25
oSoMoNnerochiaro, yes, globalRect is x,y,w,h14:26
nerochiarooSoMoN: ok, this is really weird: if i have 2 images, and click on the first, it works14:30
oSoMoNnerochiaro, could it be a race condition with the position of the photo? try adding a sleep(2) before clicking on the photo, and see if that makes a difference14:30
nerochiarooSoMoN: already done, no difference14:31
nerochiarooSoMoN: and if i delete one photo i have the same issue again, adding one more fixes it14:31
nerochiarooSoMoN: but with three pictures it is broken again14:32
nerochiarowtf ?14:32
nerochiarobfiller: sent you an email with a lot of details about what is going wrong in these integration tests for browser content picker, and CC'd om26er . If you need any other detail to be able to take it from there let me know17:04
bfillernerochiaro: great, thanks17:06
=== bfiller is now known as bfiller_afk
=== bfiller_afk is now known as bfiller
=== mhall119 is now known as mhall119|afk
=== salem_ is now known as _salem
=== _salem is now known as salem_

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!