Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Raj
    @RajVasikarla_twitter
    kindly le tme know if that’s a possibility...
    btw, that’s a MINDBLOWING feature :)
    Raj
    @RajVasikarla_twitter
    @auchenberg : would you know the answer for my question above. Thanks in advance
    Raj
    @RajVasikarla_twitter
    @paulirish : could you kindly help me with the above Q please...
    Raj
    @RajVasikarla_twitter
    Thanks @paulirish
    Paul Irish
    @paulirish
    a lot of people have asked about this but nobody has wired up an implementation so far. you'll have to deal with offset ranges in the source file. but with some work you'll have it under control.
    Raj
    @RajVasikarla_twitter
    Great, this is an amazing feature
    thanks a lot
    do you have any pointers/references to others already implementing it?
    that could be a good start for me
    Paul Irish
    @paulirish
    yeah looking at that right now..
    Raj
    @RajVasikarla_twitter
    cool
    i’ll go thru that :)
    thanks for the quick response
    Paul Irish
    @paulirish
    you can also check out https://github.com/ChromeDevTools/devtools-frontend/blob/master/front_end/coverage/CoverageModel.js which is the underlying impl for devtools. it consumes takePreciseCoverage for JS very directly
    Raj
    @RajVasikarla_twitter
    cool
    Paul Irish
    @paulirish
    :) cheers
    Gaston Vargas
    @goldcoin93
    anyone here that can answer some questions about Crouton on chromebooks
    Raj
    @RajVasikarla_twitter
    any clue why i get this when im trying to use the coverage option from chrome canary
    Raj
    @RajVasikarla_twitter

    import * as fs from "fs";
    import {createSession} from "chrome-debugging-client";

    describe("Functional Coverage Test", function() {
    this.timeout(880000);
    it("Get the coverage", () => {
    //Get the dynamic port from Chrome
    browser.url("chrome://version");
    let cmd_line = browser.getText("#command_line"),
    res = cmd_line.match(/--remote-debugging-port=[0-9][0-9][0-9][0-9][0-9]/gi),
    port = res[0].split("=")[1];
    console.log(port);
    browser.pause(15000);
    createSession(async (session) => {
    const api = await session.createAPIClient("172.28.70.29", port);
    console.dir(api);
    const tabs = await api.listTabs();
    const tab = tabs[0];
    console.log("====>");
    console.log(tab.webSocketDebuggerUrl);
    let client = await session.openDebuggingProtocol(http://localhost:${port});

        await client.send("Profiler.enable");
        await client.send("Page.enable");
        await client.send("Profiler.startPrecisionCoverage", {callCount: true});
        await client.send("Page.navigate", {url: "https://www.microsoft.com"});
        await new Promise((resolve) => client.on("Page.loadEventFired", resolve));
        await new Promise((resolve) => setTimeout(resolve, 10000));
        let result = await client.send("Profiler.takePrecisionCoverage");
        fs.writeFileSync("coverage.json", JSON.stringify(result, null, 2));
    }). catch(err => {
        console.error(err);
    });
    });
    
    after(() => {
    
    });   

    });

    @paulirish could you kindly help me undestand what i might be doing wrong in the above snippet
    i’m unable to create a client to programatically enable profiler and start the covearge
    Adzanny
    @zanisis
    anyone know about chrome.extension?. i need parssing data from popup.js to background.js? in popup.js first update url and after document ready i need parsing data to background?
    Raj
    @RajVasikarla_twitter
    could anyone help me with exporting the coverage data from chrome developer tools?
    Raj
    @RajVasikarla_twitter
    @paulirish : is there a way to export the coverage details from the chrome console?
    Paul Irish
    @paulirish
    @RajVasikarla_twitter no but you can check out https://github.com/paulirish/covfefe-coverage
    Raj
    @RajVasikarla_twitter
    sure
    i love the name covfefe :P
    Paul Irish
    @paulirish
    :)
    Ondrej Špeťko
    @OndrejSpetko_twitter
    Hello, I am looking for help with my Chrome Browser Extension. Very specific problem but cant find more relevant rooms
    Mohamad Qaddura
    @msqaddura
    @OndrejSpetko_twitter have a look at this
    you can as well ask
    Matt Ziemer
    @mziemer21
    @paulirish I am trying to add CSS coverage using CSS.startRuleUsageTracking to your covfefe-coverage example. I am getting an array of RuleUsage items, but when I try and match a rule's startOffset and endOffset to the origin css file I am getting incomplete css rules.
    article a[name]:hover {
      text-decoration: none
    }
    .waffle-sample .o
    ^^ start of a new rule that is cut off
    Here is a gist of my launchChrome function.
    https://gist.github.com/mziemer21/5b76d5e695501af72272d40c9e693a43
    Am I incorrect assuming startOffset and endOffset can be used as substring params on the original css file (line 29)?
    Matt Ziemer
    @mziemer21
    Is anyone else here familiar with the CSS api?
    Raj
    @RajVasikarla_twitter
    @paulirish : is there a way to throttle CPU from cmdline options for chrome?
    Paul Irish
    @paulirish
    @RajVasikarla_twitter to answer this question a few months late... you to do that via the protocol.
    Shantanu Sharma
    @sns45
    anyone used ---remote-debugging-port from another environment using IP ?
    it works fine on localhost but not from remote.
    Mohamad Qaddura
    @msqaddura
    @sns45 maybe first check firewall is not blocking the port from remote access
    Shantanu Sharma
    @sns45
    @msqaddura yes I checked it's not a firewall issue. I tried by disabling the firewall and also by adding the Port to exception.
    Mohamad Qaddura
    @msqaddura
    if you have powershell, you can run this command
    tnc 127.0.0.1 -P 9222
    this will help you ping a specific port in this case my local machine and port 9222 which is the RDP so maybe at least that will help you find out where the problem is
    like ping it from your other machine then it could give you hints, otherwise i myself did not try using it remotely so maybe someone else could help with that